summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
committercelestar <celestar@openttd.org>2006-03-29 16:30:26 +0000
commita7d8ad0004e00e1d917d636f4d69fd58f5edbfa3 (patch)
treec1903bfd394f761768fa9d907c58a76229e1b2f8 /newgrf.c
parent9c96bcb9975c4f9e197cebf0562f81de5be99b5b (diff)
downloadopenttd-a7d8ad0004e00e1d917d636f4d69fd58f5edbfa3.tar.xz
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/newgrf.c b/newgrf.c
index 4507579c3..750685243 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -355,6 +355,9 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
engclass = 0;
} else if (traction <= 0x27) {
engclass = 1;
+ } else if (traction <= 0x31) {
+ engclass = 2;
+ ei[i].railtype = RAILTYPE_ELECTRIC;
} else if (traction <= 0x41) {
engclass = 2;
} else {
@@ -2309,12 +2312,8 @@ static void InitializeGRFSpecial(void)
| (1 << 0x18) /* newrvs */
| (1 << 0x19) /* newships */
| (1 << 0x1A) /* newplanes */
- | (_patches.signal_side ? (1 << 0x1B) : 0); /* signalsontrafficside */
- /* Uncomment following if you want to fool the GRF file.
- * Some GRF files will refuse to load without this
- * but you can still squeeze something from them even
- * without the support - i.e. USSet. --pasky */
- //| (1 << 0x1C); /* electrifiedrailway */
+ | (_patches.signal_side ? (1 << 0x1B) : 0) /* signalsontrafficside */
+ | (1 << 0x1C); /* electrifiedrailway */
_ttdpatch_flags[2] = (_patches.build_on_slopes ? (1 << 0x0D) : 0) /* buildonslopes */
| (_patches.build_on_slopes ? (1 << 0x15) : 0) /* buildoncoasts */