diff options
author | peter1138 <peter1138@openttd.org> | 2006-11-29 11:48:47 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-11-29 11:48:47 +0000 |
commit | a38f6a1cff758c8fcb7a0b59de5d4eb47cb4f722 (patch) | |
tree | 15d030ed8732cd27d439f1bcb7e8baac8cf8e198 | |
parent | 5f51f8e8a0005d8bb42d5aedd958dff644f0ffd5 (diff) | |
download | openttd-a38f6a1cff758c8fcb7a0b59de5d4eb47cb4f722.tar.xz |
(svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word.
-rw-r--r-- | newgrf_engine.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |