ware x is missing and mine exhausted
Bug #1489295 reported by
kaputtnik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
In early state of game a player may not produce as many food and beverage to fill the stock of mines. So often the tooltip of exhausted mines says "Did not start mining, because ware x is missing". The tooltip "Mine exhausted" is set rarely, but in this state of game this message is much important than "ware x is missing".
It would be nice if the messages gets combined, like "No resources and no food in the mine to produce ore".
See https:/
Related branches
lp:~widelands-dev/widelands/bug-1489295-mine-is-exhausted
- Toni Förster: Approve (testing, playing, compiling)
- hessenfarmer: Pending requested
-
Diff: 40 lines (+12/-4)1 file modifiedsrc/logic/map_objects/tribes/production_program.cc (+12/-4)
Changed in widelands: | |
milestone: | none → build21-rc1 |
status: | New → Confirmed |
Changed in widelands: | |
assignee: | nobody → Toni Förster (stonerl) |
Changed in widelands: | |
status: | Confirmed → Fix Committed |
assignee: | Toni Förster (stonerl) → nobody |
To post a comment you must log in.
My naive idea was to not execute this:
https:/ /bazaar. launchpad. net/~widelands- dev/widelands/ trunk/view/ head:/src/ logic/map_ objects/ tribes/ production_ program. cc#L919
when the current overlay is out_of_ resource_ title. But I have no clue how to get the current overlay.
Pseudo-Code incomming:
if (overlay != out_of_ resource_ title){ set_production_ result( result_ string) ;
ps.
}
Does ps.production_ result( ) get me there?
@hessenfarmer what do you think