Comment 1 for bug 1489295

Revision history for this message
Toni Förster (stonerl) wrote :

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){
    ps.set_production_result(result_string);
}

Does ps.production_result() get me there?

@hessenfarmer what do you think