TiborB has proposed merging lp:~widelands-dev/widelands/ai_fisher_fix into lp:widelands.
Commit message: AI tweak - fisher now strictly requires fishes in vicinity. Requested reviews: Widelands Developers (widelands-dev) For more details, see: https://code.launchpad.net/~widelands-dev/widelands/ai_fisher_fix/+merge/342427 AI tweak - fisher now strictly requires fishes in vicinity. NOT TESTED! But what can go wrong here :) -- Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/ai_fisher_fix into lp:widelands.
=== modified file 'src/ai/defaultai.cc' --- src/ai/defaultai.cc 2018-03-27 09:10:21 +0000 +++ src/ai/defaultai.cc 2018-03-29 21:24:24 +0000 @@ -2722,7 +2722,7 @@ } else if (bo.is(BuildingAttribute::kFisher)) { // fisher - if (bf->water_nearby < 2 || bf->fish_nearby < 2) { + if (bf->fish_nearby < 2) { continue; }
_______________________________________________ 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