Author: sveinung
Date: Tue Aug  4 13:28:00 2015
New Revision: 29322

URL: http://svn.gna.org/viewcvs/freeciv?rev=29322&view=rev
Log:
Allow general Bombard action enablers that don't specify unit type

If a unit type doesn't have a bombard_rate the action will be disabled.

This allows a Bombard action enabler without a unit type requirement that
applies to all otherwise eligible unit types like already is possible for
Join City.

See patch #6163

Modified:
    trunk/server/rssanity.c

Modified: trunk/server/rssanity.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/rssanity.c?rev=29322&r1=29321&r2=29322&view=diff
==============================================================================
--- trunk/server/rssanity.c     (original)
+++ trunk/server/rssanity.c     Tue Aug  4 13:28:00 2015
@@ -669,16 +669,6 @@
                     utype_rule_name(putype));
       ok = FALSE;
     }
-
-    /* The ability to bombard requires a bombard_rate. */
-    if (utype_can_do_action(putype, ACTION_BOMBARD)
-        && putype->bombard_rate <= 0) {
-      ruleset_error(LOG_ERROR,
-                    "The unit type '%s' can do the 'Bombard' action"
-                    " but no bombard_rate is set.",
-                    utype_rule_name(putype));
-      ok = FALSE;
-    }
   } unit_type_iterate_end;
 
   /* Check requirement sets against conflicting requirements.


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

Reply via email to