Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#10923) Sewer system isn't counted as SIZE_ADJ sour
Home

[Freeciv-Dev] Re: (PR#10923) Sewer system isn't counted as SIZE_ADJ sour

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#10923) Sewer system isn't counted as SIZE_ADJ source
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Mon, 6 Dec 2004 12:25:13 -0800
Reply-to: rt@xxxxxxxxxxx

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

Jason Short wrote:
> 
> In the attached savegame I got "Washington needs an improvement to grow 
> any further" at the beginning of the turn.  I assume I'll get it next 
> year except that washington will finish the sewer.  The bug here is that 
> Washington is building a sewer system so the message should say "being 
> built".

  Error seems rather obvious.



  - ML

diff -Nurd -X.diff_ignore freeciv/server/cityturn.c freeciv/server/cityturn.c
--- freeciv/server/cityturn.c   2004-12-06 21:12:28.140625000 +0200
+++ freeciv/server/cityturn.c   2004-12-06 22:03:30.281250000 +0200
@@ -460,7 +460,8 @@
   bool rapture_grow = city_rapture_grow(pcity); /* check before size increase! 
*/
 
   if (!city_can_grow_to(pcity, pcity->size + 1)) { /* need improvement */
-    if (get_current_construction_bonus(pcity, EFT_SIZE_ADJ) > 0) {
+    if (get_current_construction_bonus(pcity, EFT_SIZE_ADJ) > 0
+        || get_current_construction_bonus(pcity, EFT_SIZE_UNLIMIT)) {
       notify_player_ex(powner, pcity->tile, E_CITY_AQ_BUILDING,
                       _("Game: %s needs %s (being built) "
                         "to grow any further."), pcity->name,

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#10923) Sewer system isn't counted as SIZE_ADJ source, Marko Lindqvist <=