Changeset - r20835:bb008984e499
[Not reviewed]
master
0 1 0
planetmaker - 11 years ago 2013-10-17 21:47:16
planetmaker@openttd.org
(svn r25879) -Change: Allow to remove unowned objects unless they have the 'unremovable' flag
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/object_cmd.cpp
Show inline comments
 
@@ -486,8 +486,8 @@ static CommandCost ClearTile_Object(Tile
 
		} else if (_game_mode == GM_EDITOR) {
 
			/* No further limitations for the editor. */
 
		} else if (GetTileOwner(tile) == OWNER_NONE) {
 
			/* Owned by nobody, so we can only remove it with brute force! */
 
			if (!_cheats.magic_bulldozer.value) return CMD_ERROR;
 
			/* Owned by nobody and unremovable, so we can only remove it with brute force! */
 
			if (!_cheats.magic_bulldozer.value && (spec->flags & OBJECT_FLAG_CANNOT_REMOVE) != 0) return CMD_ERROR;
 
		} else if (CheckTileOwnership(tile).Failed()) {
 
			/* We don't own it!. */
 
			return_cmd_error(STR_ERROR_OWNED_BY);
0 comments (0 inline, 0 general)