widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #12797
Re: [Merge] lp:~widelands-dev/widelands/ai_2_new_hints into lp:widelands
Since we now have the same code repeated three times, how about having a function:
BuildingHints::get_ai_limit(Widelands::AiType) const;
And stick the limits in a std::map?
--
https://code.launchpad.net/~widelands-dev/widelands/ai_2_new_hints/+merge/340548
Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/ai_2_new_hints into lp:widelands.
References