--- a/src/ai/api/ai_object.cpp Fri Aug 03 22:09:42 2007 +0000
+++ b/src/ai/api/ai_object.cpp Sun Aug 19 13:01:41 2007 +0000
@@ -102,7 +102,7 @@
command_struct->event_data = NULL;
}
-bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint procc)
+bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint procc, bool water_protection)
{
uint32 flags = 0;
PlayerID old_lp;
@@ -110,6 +110,7 @@
const char* tmp_cmdtext;
if (procc != CMD_LANDSCAPE_CLEAR) flags |= DC_AUTO;
+ if (water_protection) flags |= DC_NO_WATER;
/* The test already resets _cmd_text, so backup the pointer */
tmp_cmdtext = _cmd_text;