Author: cazfi
Date: Wed Mar 25 18:23:14 2015
New Revision: 28623

URL: http://svn.gna.org/viewcvs/freeciv?rev=28623&view=rev
Log:
Fixed error in boolean effect sanity check patch #5918 that was preventing even 
sane setups

Reported by Jacob Nevins <jtn>

See patch #5918

Modified:
    branches/S2_5/server/rssanity.c

Modified: branches/S2_5/server/rssanity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/rssanity.c?rev=28623&r1=28622&r2=28623&view=diff
==============================================================================
--- branches/S2_5/server/rssanity.c     (original)
+++ branches/S2_5/server/rssanity.c     Wed Mar 25 18:23:14 2015
@@ -486,7 +486,7 @@
 
   for (i = 0; boolean_effects[i] != EFT_LAST; i++) {
     if (effect_cumulative_min(boolean_effects[i], NULL) < 0
-        && effect_cumulative_max(boolean_effects[i], NULL) >= 0) {
+        && effect_cumulative_max(boolean_effects[i], NULL) == 0) {
       ruleset_error(LOG_ERROR, "Boolean effect %s can get disabled, but it 
can't get "
                     "enabled before that.", 
effect_type_name(boolean_effects[i]));
       ret = FALSE;


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

Reply via email to