summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-12-02 16:56:32 +0000
committerpeter1138 <peter1138@openttd.org>2006-12-02 16:56:32 +0000
commit039794e83ca40717e0a5aff927f20e7a560ac7c5 (patch)
tree5e7abf3b12a62b206a4e2ea934e86e51e08cb91e /newgrf.c
parent6a4d8fdd33de84ef691caa29ea77c21ff2b8d6c4 (diff)
downloadopenttd-039794e83ca40717e0a5aff927f20e7a560ac7c5.tar.xz
(svn r7326) -Feature: Add support for gradual (un)loading of vehicles (Maedhros)
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/newgrf.c b/newgrf.c
index fc0688ae3..70f816cf4 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -1416,14 +1416,10 @@ static void FeatureChangeInfo(byte *buf, int len)
break;
case 0x07: /* Loading speed */
- /* TODO */
/* Hyronymus explained me what does
* this mean and insists on having a
* credit ;-). --pasky */
- /* TODO: This needs to be supported by
- * LoadUnloadVehicle() first. */
- FOR_EACH_OBJECT grf_load_byte(&buf);
- ignoring = true;
+ FOR_EACH_OBJECT ei[i].load_amount = grf_load_byte(&buf);
break;
default:
@@ -3150,7 +3146,7 @@ static void InitializeGRFSpecial(void)
| ((_patches.mammoth_trains ? 1 : 0) << 0x08) // mammothtrains
| (1 << 0x09) // trainrefit
| (0 << 0x0B) // subsidiaries
- | (0 << 0x1C) // gradualloading
+ | ((_patches.gradual_loading ? 1 : 0) << 0x1C) // gradualloading
| (1 << 0x12) // unifiedmaglevmode - set bit 0 mode. Not revelant to OTTD
| (1 << 0x13) // unifiedmaglevmode - set bit 1 mode
| (1 << 0x14) // bridgespeedlimits