[Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-14 Thread guest
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 The upkeep information is now send to the client and the values are updated each turn and if * a unit is disbanded * a unit is bribed by a spy * a unit is disbanded and * a unit is updated if the creation of a unit is added the

Re: [Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-13 Thread Matthias Pfafferodt
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 reminder for me ... - Since the upkeep value is removed from struct unitgold, the entire unitgold vector can be simplified to an array (c99 dynamic array if possible) of unit pointers. I tried to change unitgold_vector to

Re: [Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-13 Thread Matthias Pfafferodt
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 Am Monday 13 April 2009 03:38:44 schrieb Madeline Book: URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 [guest - Sun Apr 12 18:29:01 2009]: - Perhaps the values of the unit upkeep field should be sent in unit info

Re: [Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-13 Thread Matthias Pfafferodt
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 version 3: * remove city_unit_upkeep(); the functionality is provided by calc_city_units_upkeep() * additional simplification (common/city.c:city_support) not tested at all - only something that I checked before going to sleep ...

[Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-12 Thread guest
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 - Perhaps the values of the unit upkeep field should be sent in unit info packets so that they do not have to be recomputed at the client side. I will look into this. Should this be something like in the attached file

[Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-12 Thread Madeline Book
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 [guest - Sun Apr 12 18:29:01 2009]: - Perhaps the values of the unit upkeep field should be sent in unit info packets so that they do not have to be recomputed at the client side. I will look into this. Should this

[Freeciv-Dev] (PR#40759) [patch] calc_city_units_upkeep

2009-04-11 Thread Matthias Pfafferodt
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40759 calculate the upkeep for all units of all cities at the start of the turn and save it in the unit struct depends on ticket 40619 compile tested and also with a short game diff -ur freeciv-2.1.99svn15584.gold//common/unit.c