(svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word.
authorpeter1138
Wed, 29 Nov 2006 11:48:47 +0000
changeset 5175 e528d197bbdd
parent 5174 0f31845853d3
child 5176 5fd9055eeadc
(svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word.
newgrf_engine.c
--- a/newgrf_engine.c	Tue Nov 28 23:44:12 2006 +0000
+++ b/newgrf_engine.c	Wed Nov 29 11:48:47 2006 +0000
@@ -710,7 +710,7 @@
 		case 0x28: return v->cur_image;
 		case 0x29: return GB(v->cur_image, 8, 8);
 		case 0x32: return v->vehstatus;
-		case 0x33: return GB(v->vehstatus, 8, 8);
+		case 0x33: return 0; // non-existent high byte of vehstatus
 		case 0x34: return v->cur_speed;
 		case 0x35: return GB(v->cur_speed, 8, 8);
 		case 0x36: return v->subspeed;