From 9208cd3f42796b85672636cf61a1439779d60bed Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 7 May 2006 11:49:48 +0000 Subject: [PATCH] (svn r4770) - Revert unindented change to rail_cmd.c in r4769. --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rail_cmd.c b/rail_cmd.c index b4ed546e65..c85019ff62 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;