(svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites.
authorpeter1138
Wed, 22 Mar 2006 22:07:53 +0000
changeset 3300 a70dd3bef2cf
parent 3299 dc38a2c6a361
child 3301 4ac662c79ad3
(svn r4039) - NewGRF: Add support for a few more vehicle variables. These are sometimes used for animation of sprites.
newgrf_engine.c
--- a/newgrf_engine.c	Wed Mar 22 21:08:05 2006 +0000
+++ b/newgrf_engine.c	Wed Mar 22 22:07:53 2006 +0000
@@ -276,6 +276,11 @@
 						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);