summaryrefslogtreecommitdiff
path: root/rail_cmd.c
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
commit9208cd3f42796b85672636cf61a1439779d60bed (patch)
treeb3446975c5224408bbf4978d5a0ac1691caae825 /rail_cmd.c
parentd3fea6904153cffdd5e78ce0ebf3cf22fbf692b2 (diff)
downloadopenttd-9208cd3f42796b85672636cf61a1439779d60bed.tar.xz
(svn r4770) - Revert unindented change to rail_cmd.c in r4769.
Diffstat (limited to 'rail_cmd.c')
-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;