diff options
author | Vít Šefl <vituscze@gmail.com> | 2021-08-15 11:17:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 11:17:05 +0200 |
commit | 2183fd4dabe72bd96b264bf8cdb3a2a8be625cf8 (patch) | |
tree | 7a94f94723ac65e43d5ab856d5945b3bce9a5b31 /src/newgrf.cpp | |
parent | 579f393374c4fae2458523a674c453349fce7c59 (diff) | |
download | openttd-2183fd4dabe72bd96b264bf8cdb3a2a8be625cf8.tar.xz |
Feature: [NewGRF] Maximum curve speed modifier for rail vehicles (#9346)
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 7c7d55dea..8d2f5f9f9 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1331,6 +1331,10 @@ static ChangeInfoResult RailVehicleChangeInfo(uint engine, int numinfo, int prop break; } + case PROP_TRAIN_CURVE_SPEED_MOD: // 0x2E Curve speed modifier + rvi->curve_speed_mod = buf->ReadWord(); + break; + default: ret = CommonVehicleChangeInfo(ei, prop, buf); break; |