From 93abea25ac38daf2a41a861c367ab9c55701953b Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 29 Nov 2006 11:48:47 +0000 Subject: (svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word. --- newgrf_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newgrf_engine.c b/newgrf_engine.c index faa3bfef4..cb126c432 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -710,7 +710,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by 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; -- cgit v1.2.3-70-g09d2