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

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

See bug #24162

Modified:
    branches/S2_6/server/sanitycheck.c

Modified: branches/S2_6/server/sanitycheck.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/sanitycheck.c?rev=30958&r1=30957&r2=30958&view=diff
==============================================================================
--- branches/S2_6/server/sanitycheck.c  (original)
+++ branches/S2_6/server/sanitycheck.c  Sat Dec 12 16:41:16 2015
@@ -320,7 +320,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