Author: pepeto
Date: Thu Nov 13 21:12:58 2014
New Revision: 27037

URL: http://svn.gna.org/viewcvs/freeciv?rev=27037&view=rev
Log:
Make can_player_build_improvement_later() not returning TRUE for great wonder
already built.

Reported by mir3x

See gna bug #22667

Modified:
    branches/S2_5/common/improvement.c

Modified: branches/S2_5/common/improvement.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/improvement.c?rev=27037&r1=27036&r2=27037&view=diff
==============================================================================
--- branches/S2_5/common/improvement.c  (original)
+++ branches/S2_5/common/improvement.c  Thu Nov 13 21:12:58 2014
@@ -469,6 +469,10 @@
     return FALSE;
   }
   if (improvement_obsolete(p, pimprove)) {
+    return FALSE;
+  }
+  if (is_great_wonder(pimprove) && !great_wonder_is_available(pimprove)) {
+    /* Can't build wonder if already built */
     return FALSE;
   }
 


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

Reply via email to