TiborB has proposed merging lp:~widelands-dev/widelands/bug-1380307 into lp:widelands.
Requested reviews: Widelands Developers (widelands-dev) For more details, see: https://code.launchpad.net/~widelands-dev/widelands/bug-1380307/+merge/238083 Very simple fix. The function is not used now, and will be probably removed sometimes in the future. -- https://code.launchpad.net/~widelands-dev/widelands/bug-1380307/+merge/238083 Your team Widelands Developers is requested to review the proposed merge of lp:~widelands-dev/widelands/bug-1380307 into lp:widelands.
=== modified file 'src/ai/defaultai.cc' --- src/ai/defaultai.cc 2014-10-08 18:06:06 +0000 +++ src/ai/defaultai.cc 2014-10-12 19:10:31 +0000 @@ -3275,6 +3275,8 @@ sum_m += genstats[j - 1].miltary_strength.back(); count_m += 1; } - - log(" Average: Landsize: %5d, military strenght: %3d\n", sum_l / count_l, sum_m / count_m); + + if ( count_l > 0 && count_m >0 ) { + log(" Average: Landsize: %5d, military strenght: %3d\n", sum_l / count_l, sum_m / count_m); + } }
_______________________________________________ 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