Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: Pop cost bug on adding to cities (PR#918)
Home

[Freeciv-Dev] Re: Pop cost bug on adding to cities (PR#918)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx, Arien Malec <arien_malec@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Pop cost bug on adding to cities (PR#918)
From: Arien Malec <arien_malec@xxxxxxxxx>
Date: Wed, 29 Aug 2001 07:56:07 -0700 (PDT)

The diff didn't seem to be attached cleanly: here it is embedded in the text of
the email. As you can see, city_add_unit is just incrementing size, not adding
the unit_pop_value of the adding unit (that's a typo in the diff: I guess I
didn't compile, though I meant to).

Arien

Index: server/unithand.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/server/unithand.c,v
retrieving revision 1.199
diff -u -r1.199 unithand.c
--- server/unithand.c   2001/08/28 13:45:39     1.199
+++ server/unithand.c   2001/08/28 22:21:36
@@ -504,7 +504,7 @@
   struct city *pcity = map_get_city(punit->x, punit->y);
   char *unit_name = get_unit_type(punit->type)->name;
 
-  pcity->size++;
+  pcity->size += unit_pop_cost(punit);
   if (!add_adjust_workers(pcity)) {
     auto_arrange_workers(pcity);
     sync_cities();


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


[Prev in Thread] Current Thread [Next in Thread]