Author: jtn
Date: Thu Feb  5 01:22:05 2015
New Revision: 27979

URL: http://svn.gna.org/viewcvs/freeciv?rev=27979&view=rev
Log:
Close loopholes when disaster zeroes production box.

See gna bug #23218.

Modified:
    branches/S2_5/server/cityturn.c

Modified: branches/S2_5/server/cityturn.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/cityturn.c?rev=27979&r1=27978&r2=27979&view=diff
==============================================================================
--- branches/S2_5/server/cityturn.c     (original)
+++ branches/S2_5/server/cityturn.c     Thu Feb  5 01:22:05 2015
@@ -3018,6 +3018,7 @@
       char prod[256];
 
       pcity->shield_stock = 0;
+      nullify_prechange_production(pcity); /* Make it impossible to recover */
 
       universal_name_translation(&pcity->production, prod, sizeof(prod));
       notify_player(pplayer, ptile, E_DISASTER, ftc_server,


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to