summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-03-22 22:07:53 +0000
committerpeter1138 <peter1138@openttd.org>2006-03-22 22:07:53 +0000
commit68ee299e7764b982c1027d1e3116cad20a321c0d (patch)
treee0a7a83c379ac0316bc005a09d13bef015907abf
parent2eafeaf7d6faf1c6116539b5ad7002c0ff448876 (diff)
downloadopenttd-68ee299e7764b982c1027d1e3116cad20a321c0d.tar.xz
(svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites.
-rw-r--r--newgrf_engine.c5
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);