equal
deleted
inserted
replaced
231 |
231 |
232 // checks if you're allowed to remove unmovable things |
232 // checks if you're allowed to remove unmovable things |
233 if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) ) |
233 if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) ) |
234 return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); |
234 return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); |
235 |
235 |
|
236 if (IsStatue(tile)) { |
|
237 TownID town = GetStatueTownID(tile); |
|
238 CLRBIT(GetTown(town)->statues, _current_player); |
|
239 InvalidateWindow(WC_TOWN_AUTHORITY, town); |
|
240 } |
|
241 |
236 if (flags & DC_EXEC) { |
242 if (flags & DC_EXEC) { |
237 DoClearSquare(tile); |
243 DoClearSquare(tile); |
238 } |
244 } |
239 |
245 |
240 return 0; |
246 return 0; |