src/unmovable_cmd.cpp
branchgamebalance
changeset 9903 dc85aaa556ae
parent 9895 7bd07f43b0e3
child 9906 6f41b8713b65
equal deleted inserted replaced
9902:ed8f92929297 9903:dc85aaa556ae
   219 			return_cmd_error(STR_5804_COMPANY_HEADQUARTERS_IN);
   219 			return_cmd_error(STR_5804_COMPANY_HEADQUARTERS_IN);
   220 		}
   220 		}
   221 	}
   221 	}
   222 
   222 
   223 	if (IsOwnedLand(tile)) {
   223 	if (IsOwnedLand(tile)) {
       
   224 		if (flags & DC_AUTO) return CMD_ERROR;
   224 		return DoCommand(tile, 0, 0, flags, CMD_SELL_LAND_AREA);
   225 		return DoCommand(tile, 0, 0, flags, CMD_SELL_LAND_AREA);
   225 	}
   226 	}
   226 
   227 
   227 	// checks if you're allowed to remove unmovable things
   228 	// checks if you're allowed to remove unmovable things
   228 	if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) )
   229 	if (_game_mode != GM_EDITOR && _current_player != OWNER_WATER && ((flags & DC_AUTO || !_cheats.magic_bulldozer.value)) )