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. _______________________________________________ Mailing list: https://launchpad.net/~widelands-dev Post to : widelands-dev@lists.launchpad.net Unsubscribe : https://launchpad.net/~widelands-dev More help : https://help.launchpad.net/ListHelp