Author: sveinung
Date: Sun Oct 11 19:21:48 2015
New Revision: 30053

URL: http://svn.gna.org/viewcvs/freeciv?rev=30053&view=rev
Log:
ai: force setting tile behavior for new tasks

Have the compiler warn when a new ai_unit_task is added without explicitly
setting the tile behavior in dai_fill_unit_param() of military units that
are doing it.

See patch #6402

Modified:
    branches/S2_6/ai/default/aitools.c

Modified: branches/S2_6/ai/default/aitools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/ai/default/aitools.c?rev=30053&r1=30052&r2=30053&view=diff
==============================================================================
--- branches/S2_6/ai/default/aitools.c  (original)
+++ branches/S2_6/ai/default/aitools.c  Sun Oct 11 19:21:48 2015
@@ -607,7 +607,7 @@
     case AIUNIT_RECOVER:
       parameter->get_TB = no_fights;
       break;
-    default:
+    case AIUNIT_NONE:
       /* Default tile behaviour */
       break;
     }


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

Reply via email to