diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-07 11:41:44 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-07 11:41:44 +0000 |
commit | d3fea6904153cffdd5e78ce0ebf3cf22fbf692b2 (patch) | |
tree | 6561cf240f19694d6591cbd8854b7eb6ac3eb23c /rail_cmd.c | |
parent | 0f6dc99fb5b84f8a091baad1695043e40c8bd52b (diff) | |
download | openttd-d3fea6904153cffdd5e78ce0ebf3cf22fbf692b2.tar.xz |
(svn r4769) - Newstations: add newstations ttdpatch flag
Diffstat (limited to 'rail_cmd.c')
-rw-r--r-- | rail_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c index c85019ff6..b4ed546e6 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) && (!IsCompatibleRail(GetRailType(tile), totype) || IsPlainRailTile(tile))) return CMD_ERROR; + if (!(EnsureNoVehicle(tile) || (GetRailType(tile) == RAILTYPE_RAIL && totype == RAILTYPE_ELECTRIC)) && (!IsCompatibleRail(GetRailType(tile), totype) || IsPlainRailTile(tile))) return CMD_ERROR; // tile is already of requested type? if (GetRailType(tile) == totype) return CMD_ERROR; |