1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-02 11:29:10 +00:00

(svn r7285) -Fix (r7282): Our vehstatus is a byte, not a word.

This commit is contained in:
2006-11-29 11:48:47 +00:00
parent 5f51f8e8a0
commit a38f6a1cff

View File

@@ -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;