Author: sveinung Date: Sun Oct 11 19:19:16 2015 New Revision: 30049 URL: http://svn.gna.org/viewcvs/freeciv?rev=30049&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: trunk/ai/default/aitools.c Modified: trunk/ai/default/aitools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aitools.c?rev=30049&r1=30048&r2=30049&view=diff ============================================================================== --- trunk/ai/default/aitools.c (original) +++ trunk/ai/default/aitools.c Sun Oct 11 19:19:16 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