diff options
author | peter1138 <peter1138@openttd.org> | 2006-03-22 22:07:53 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-03-22 22:07:53 +0000 |
commit | 68ee299e7764b982c1027d1e3116cad20a321c0d (patch) | |
tree | e0a7a83c379ac0316bc005a09d13bef015907abf /newgrf_engine.c | |
parent | 2eafeaf7d6faf1c6116539b5ad7002c0ff448876 (diff) | |
download | openttd-68ee299e7764b982c1027d1e3116cad20a321c0d.tar.xz |
(svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites.
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r-- | newgrf_engine.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c index 1fd9e00f3..1c408200f 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -276,6 +276,11 @@ static const SpriteGroup* ResolveVehicleSpriteGroup(const SpriteGroup *spritegro veh_prop(0x17, veh->tick_counter); veh_prop(0x18, veh->max_speed); veh_prop(0x19, veh->max_speed & 0xFF); + veh_prop(0x1A, veh->x_pos); + veh_prop(0x1B, veh->x_pos & 0xFF); + veh_prop(0x1C, veh->y_pos); + veh_prop(0x1D, veh->y_pos & 0xFF); + veh_prop(0x1E, veh->z_pos); veh_prop(0x1F, veh->direction); veh_prop(0x28, veh->cur_image); veh_prop(0x29, veh->cur_image & 0xFF); |