src/ai/api/ai_object.cpp
branchnoai
changeset 9748 4584f8cd00e8
parent 9724 b39bc69bb2f2
child 9760 265fdd2130c3
equal deleted inserted replaced
9747:7e8f23e8d0c8 9748:4584f8cd00e8
   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 */