Page 2 of 2

Re: Troubleshooting the ruleset

Posted: Fri Sep 14, 2018 12:57 pm
by Corbeau
So, just to make things clear, path is also calculated diagonally, not by Pythagoras? Distance between cities at (0,0) and (3,3) would be 3, not 3*sqrt(2) = 4(.2)?

Re: Troubleshooting the ruleset

Posted: Fri Sep 14, 2018 1:10 pm
by Akechi
Corbeau wrote:So, just to make things clear, path is also calculated diagonally, not by Pythagoras? Distance between cities at (0,0) and (3,3) would be 3, not 3*sqrt(2) = 4(.2)?

Yes, 3. not squared radius.

Re: Troubleshooting the ruleset

Posted: Fri Sep 14, 2018 1:14 pm
by Corbeau
Thanks.

Re: Troubleshooting the ruleset

Posted: Fri Sep 14, 2018 1:52 pm
by Akechi
Caedo wrote:When was that code written?
It seems September 2004.
https://github.com/freeciv/freeciv/comm ... 26fb7R2252
Before September 2004, it seems Courthouse and Palace just halves corruption (fractions are rounded down towards zero).