summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-07 11:49:48 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-07 11:49:48 +0000
commitf324715c5523c0389c414d89f8bbf0711d36e5fc (patch)
treeb3446975c5224408bbf4978d5a0ac1691caae825
parent7e0ca9489d53776642ee389fe9ec461d2d19a6b7 (diff)
downloadopenttd-f324715c5523c0389c414d89f8bbf0711d36e5fc.tar.xz
(svn r4770) - Revert unindented change to rail_cmd.c in r4769.
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index b4ed546e6..c85019ff6 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -852,7 +852,7 @@ static int32 DoConvertRail(TileIndex tile, RailType totype, bool exec)
{
if (!CheckTileOwnership(tile)) return CMD_ERROR;
- if (!(EnsureNoVehicle(tile) || (GetRailType(tile) == RAILTYPE_RAIL && totype == RAILTYPE_ELECTRIC)) && (!IsCompatibleRail(GetRailType(tile), totype) || IsPlainRailTile(tile))) return CMD_ERROR;
+ if (!EnsureNoVehicle(tile) && (!IsCompatibleRail(GetRailType(tile), totype) || IsPlainRailTile(tile))) return CMD_ERROR;
// tile is already of requested type?
if (GetRailType(tile) == totype) return CMD_ERROR;