Author: cazfi
Date: Wed Aug 19 23:39:22 2015
New Revision: 29594

URL: http://svn.gna.org/viewcvs/freeciv?rev=29594&view=rev
Log:
Made spontaneous extra appearance to require EC_SPONTANEOUS cause

See bug #23788

Modified:
    trunk/common/extras.c

Modified: trunk/common/extras.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/extras.c?rev=29594&r1=29593&r2=29594&view=diff
==============================================================================
--- trunk/common/extras.c       (original)
+++ trunk/common/extras.c       Wed Aug 19 23:39:22 2015
@@ -794,12 +794,12 @@
 }
 
 /**************************************************************************
-  Are all the requirements for extra to appear on tile fulfilled. Does not
-  check if extra is of appearing type (has EC_SPONTANEOUS cause).
+  Are all the requirements for extra to appear on tile fulfilled.
 **************************************************************************/
 bool can_extra_appear(const struct extra_type *pextra, const struct tile 
*ptile)
 {
   return !tile_has_extra(ptile, pextra)
+    && is_extra_caused_by(pextra, EC_SPONTANEOUS)
     && is_native_tile_to_extra(pextra, ptile)
     && !extra_conflicting_on_tile(pextra, ptile)
     && are_reqs_active(NULL, tile_owner(ptile), NULL, NULL, ptile,


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

Reply via email to