equal
deleted
inserted
replaced
262 /* checks if you're allowed to remove unmovable things */ |
262 /* checks if you're allowed to remove unmovable things */ |
263 if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) ) |
263 if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) ) |
264 return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); |
264 return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); |
265 |
265 |
266 if (IsStatue(tile)) { |
266 if (IsStatue(tile)) { |
|
267 if (flags & DC_AUTO) return_cmd_error(STR_5800_OBJECT_IN_THE_WAY); |
|
268 |
267 TownID town = GetStatueTownID(tile); |
269 TownID town = GetStatueTownID(tile); |
268 ClrBit(GetTown(town)->statues, _current_player); |
270 ClrBit(GetTown(town)->statues, _current_player); |
269 InvalidateWindow(WC_TOWN_AUTHORITY, town); |
271 InvalidateWindow(WC_TOWN_AUTHORITY, town); |
270 } |
272 } |
271 |
273 |