equal
deleted
inserted
replaced
106 bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint procc, bool water_protection) |
106 bool AIObject::DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint procc, bool water_protection) |
107 { |
107 { |
108 uint32 flags = 0; |
108 uint32 flags = 0; |
109 PlayerID old_lp; |
109 PlayerID old_lp; |
110 CommandCost res; |
110 CommandCost res; |
111 const char* tmp_cmdtext; |
111 const char *tmp_cmdtext; |
112 |
112 |
113 if (procc != CMD_LANDSCAPE_CLEAR) flags |= DC_AUTO; |
113 if (procc != CMD_LANDSCAPE_CLEAR) flags |= DC_AUTO; |
114 if (water_protection) flags |= DC_NO_WATER; |
114 if (water_protection) flags |= DC_NO_WATER; |
115 |
115 |
116 /* The test already resets _cmd_text, so backup the pointer */ |
116 /* The test already resets _cmd_text, so backup the pointer */ |