changeset 5116 | 2a33a74925c5 |
parent 5103 | db210d789741 |
child 5216 | d581e4db95b6 |
--- a/station_cmd.c Fri Nov 17 18:06:40 2006 +0000 +++ b/station_cmd.c Fri Nov 17 19:31:44 2006 +0000 @@ -1358,6 +1358,9 @@ if (GetRailType(tile) == totype) return CMD_ERROR; + // 'hidden' elrails can't be downgraded to normal rail when elrails are disabled + if (_patches.disable_elrails && totype == RAILTYPE_RAIL && GetRailType(tile) == RAILTYPE_ELECTRIC) return CMD_ERROR; + if (exec) { SetRailType(tile, totype); MarkTileDirtyByTile(tile);