diff options
author | alberth <alberth@openttd.org> | 2010-03-20 17:58:24 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-20 17:58:24 +0000 |
commit | 05d705e077cb247ee31e0a61bc410fe2b9183c6a (patch) | |
tree | 7c96d4ce3b519c3edc7def2e1769c2ae4d82a334 /src/water_cmd.cpp | |
parent | a901ab53925857a3f6ae70a045a9f0ec6362107e (diff) | |
download | openttd-05d705e077cb247ee31e0a61bc410fe2b9183c6a.tar.xz |
(svn r19494) -Codechange: Remove _error_message.
Diffstat (limited to 'src/water_cmd.cpp')
-rw-r--r-- | src/water_cmd.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/water_cmd.cpp b/src/water_cmd.cpp index dd472320b..1216fb213 100644 --- a/src/water_cmd.cpp +++ b/src/water_cmd.cpp @@ -166,7 +166,6 @@ static CommandCost RemoveShipDepot(TileIndex tile, DoCommandFlag flags) if (!IsShipDepot(tile)) return CMD_ERROR; CommandCost ret = CheckTileOwnership(tile); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; TileIndex tile2 = GetOtherShipDepotTile(tile); @@ -175,7 +174,6 @@ static CommandCost RemoveShipDepot(TileIndex tile, DoCommandFlag flags) if (!(flags & DC_BANKRUPT)) { CommandCost ret = EnsureNoVehicleOnGround(tile); if (ret.Succeeded()) ret = EnsureNoVehicleOnGround(tile2); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; } @@ -240,7 +238,6 @@ static CommandCost RemoveShiplift(TileIndex tile, DoCommandFlag flags) { if (GetTileOwner(tile) != OWNER_NONE) { CommandCost ret = CheckTileOwnership(tile); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; } @@ -250,7 +247,6 @@ static CommandCost RemoveShiplift(TileIndex tile, DoCommandFlag flags) CommandCost ret = EnsureNoVehicleOnGround(tile); if (ret.Succeeded()) ret = EnsureNoVehicleOnGround(tile + delta); if (ret.Succeeded()) ret = EnsureNoVehicleOnGround(tile - delta); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; if (flags & DC_EXEC) { @@ -357,12 +353,10 @@ static CommandCost ClearTile_Water(TileIndex tile, DoCommandFlag flags) /* Make sure no vehicle is on the tile */ CommandCost ret = EnsureNoVehicleOnGround(tile); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; if (GetTileOwner(tile) != OWNER_WATER && GetTileOwner(tile) != OWNER_NONE) { CommandCost ret = CheckTileOwnership(tile); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; } @@ -378,7 +372,6 @@ static CommandCost ClearTile_Water(TileIndex tile, DoCommandFlag flags) /* Make sure no vehicle is on the tile */ CommandCost ret = EnsureNoVehicleOnGround(tile); - ret.SetGlobalErrorMessage(); if (ret.Failed()) return ret; if (flags & DC_EXEC) { |