Troubleshooting the ruleset

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
User avatar
Corbeau
Elite
Posts: 834
Joined: Mon Jan 13, 2014 11:13 pm

Re: Troubleshooting the ruleset

Postby Corbeau » Fri Sep 14, 2018 12:57 pm

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)?

Akechi
Posts: 25
Joined: Thu Dec 07, 2017 12:17 pm

Re: Troubleshooting the ruleset

Postby Akechi » Fri Sep 14, 2018 1:10 pm

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.

User avatar
Corbeau
Elite
Posts: 834
Joined: Mon Jan 13, 2014 11:13 pm

Re: Troubleshooting the ruleset

Postby Corbeau » Fri Sep 14, 2018 1:14 pm

Thanks.

Akechi
Posts: 25
Joined: Thu Dec 07, 2017 12:17 pm

Re: Troubleshooting the ruleset

Postby Akechi » Fri Sep 14, 2018 1:52 pm

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).