Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] (PR#9196) city.changed_from_id and city.changed_from_is_un
Home

[Freeciv-Dev] (PR#9196) city.changed_from_id and city.changed_from_is_un

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9196) city.changed_from_id and city.changed_from_is_unit should be initialized to much more sane values
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Wed, 7 Jul 2004 04:12:38 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9196 >

currently it is set to Airport when you create the city.
--
mateusz
--- freeorig/common/city.c      2004-06-27 09:53:15.000000000 +0200
+++ freeciv/common/city.c       2004-07-07 13:05:27.000000000 +0200
@@ -2699,8 +2699,8 @@
   pcity->airlift = FALSE;
 
   pcity->turn_last_built = game.year;
-  pcity->changed_from_id = 0;
-  pcity->changed_from_is_unit = FALSE;
+  pcity->changed_from_id = pcity->currently_building;
+  pcity->changed_from_is_unit = pcity->is_building_unit;
   pcity->before_change_shields = 0;
   pcity->disbanded_shields = 0;
   pcity->caravan_shields = 0;

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9196) city.changed_from_id and city.changed_from_is_unit should be initialized to much more sane values, Mateusz Stefek <=