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
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