My only concern is division of integers and consequent rounding
Dňa ne 22. 1. 2017, 21:52 GunChleoc <email address hidden> napísal(a):
> Actually, the divisions by 100 cancel each other out in > > final += (attack * health) / (defense * evade); > > so I have removed them. Less code is good code :) > > @bunnybot merge > -- > > https://code.launchpad.net/~widelands-dev/widelands/ai_for_mods/+merge/315311 > You are reviewing the proposed merge of > lp:~widelands-dev/widelands/ai_for_mods into lp:widelands. >
« Back to merge proposal
My only concern is division of integers and consequent rounding
Dňa ne 22. 1. 2017, 21:52 GunChleoc <email address hidden> napísal(a):
> Actually, the divisions by 100 cancel each other out in /code.launchpad .net/~widelands -dev/widelands/ ai_for_ mods/+merge/ 315311
>
> final += (attack * health) / (defense * evade);
>
> so I have removed them. Less code is good code :)
>
> @bunnybot merge
> --
>
> https:/
> You are reviewing the proposed merge of
> lp:~widelands-dev/widelands/ai_for_mods into lp:widelands.
>