Author: cazfi
Date: Sat Dec 12 16:41:08 2015
New Revision: 30957

URL: http://svn.gna.org/viewcvs/freeciv?rev=30957&view=rev
Log:
Changed 'pcity->server.workers_frozen == 0' sanitycheck to check 
'!pcity->server.needs_arrange' instead

See bug #24162

Modified:
    trunk/server/sanitycheck.c

Modified: trunk/server/sanitycheck.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/sanitycheck.c?rev=30957&r1=30956&r2=30957&view=diff
==============================================================================
--- trunk/server/sanitycheck.c  (original)
+++ trunk/server/sanitycheck.c  Sat Dec 12 16:41:08 2015
@@ -353,7 +353,12 @@
       sum += pcity->feel[ccategory][feel];
     }
 
-    SANITY_CITY(pcity, pcity->server.workers_frozen == 0);
+    /* While loading savegame, we want to check sanity of values read from the
+     * savegame despite the fact that city workers_frozen level of the city
+     * is above zero -> can't limit sanitycheck callpoints by that. Instead
+     * we check even more relevant needs_arrange. */
+    SANITY_CITY(pcity, !pcity->server.needs_arrange);
+
     SANITY_CITY(pcity, city_size_get(pcity) - spe == sum);
   }
 }


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

Reply via email to