summaryrefslogtreecommitdiff
path: root/elrail.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-12-10 15:21:48 +0000
committerDarkvater <Darkvater@openttd.org>2006-12-10 15:21:48 +0000
commit421d3653c74f2bc10db3c422c5ecc7481e028ee1 (patch)
tree7cdddf81b8233a75c5d3c39797c1fd3ea1ff7dd7 /elrail.c
parentf9f6b5f341b8b296e58fa33a719bfd1ede5ebd05 (diff)
downloadopenttd-421d3653c74f2bc10db3c422c5ecc7481e028ee1.tar.xz
(svn r7470) -Codechange: Leave elrails enabled after loading old (pre-optional) and very old (pre-elrails) games. Let the user manually disable if if undesired.
Diffstat (limited to 'elrail.c')
-rw-r--r--elrail.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/elrail.c b/elrail.c
index a1a48bceb..64a1735d3 100644
--- a/elrail.c
+++ b/elrail.c
@@ -403,8 +403,7 @@ int32 SettingsDisableElrail(int32 p1)
const RailType new_railtype = disable ? RAILTYPE_RAIL : RAILTYPE_ELECTRIC;
/* walk through all train engines */
- for (e_id = 0; e_id < NUM_TRAIN_ENGINES; e_id++)
- {
+ for (e_id = 0; e_id < NUM_TRAIN_ENGINES; e_id++) {
const RailVehicleInfo *rv_info = RailVehInfo(e_id);
Engine *e = GetEngine(e_id);
/* if it is an electric rail engine and its railtype is the wrong one */