(svn r4770) - Revert unindented change to rail_cmd.c in r4769.
authorpeter1138
Sun, 07 May 2006 11:49:48 +0000
changeset 3778 475b560a739e
parent 3777 455c0c7b657e
child 3779 8159f95872dc
(svn r4770) - Revert unindented change to rail_cmd.c in r4769.
rail_cmd.c
--- a/rail_cmd.c	Sun May 07 11:41:44 2006 +0000
+++ b/rail_cmd.c	Sun May 07 11:49:48 2006 +0000
@@ -852,7 +852,7 @@
 {
 	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;