[Freeciv-Dev] Re: (PR#8754) effects patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8754 >
This piece of code:
- if (city_got_building(pcity, B_COURTHOUSE)) {
- dist /= 4;
- }
+ dist -= (dist * get_city_bonus(pcity, EFT_INCITE_DIST_PCT)) / 100;
is logically correct but will, I think, cause savegames to differ
because the rounding is different. This may make debugging harder. It
would be possible to have
dist = dist * (100 - get_city_bonus(...)) / 100
instead; it's up to you.
jason
- [Freeciv-Dev] Re: (PR#8754) effects patch, (continued)
- [Freeciv-Dev] Re: (PR#8754) effects patch, Per Inge Mathisen, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Mike Kaufman, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/19
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/19
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/19
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/21
- [Freeciv-Dev] Re: (PR#8754) effects patch,
Jason Short <=
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/21
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/21
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/21
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/21
- [Freeciv-Dev] Re: (PR#8754) effects patch, Billy Naylor, 2004/07/23
- [Freeciv-Dev] Re: (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/23
- [Freeciv-Dev] (PR#8754) effects patch, Vasco Alexandre da Silva Costa, 2004/07/24
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/25
- [Freeciv-Dev] (PR#8754) effects patch, Gregory Richards, 2004/07/25
- [Freeciv-Dev] Re: (PR#8754) effects patch, Jason Short, 2004/07/25
|
|