mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r16615) -Fix (r16613): 0x10 != 2
This commit is contained in:
parent
c7bd6c8d34
commit
2aeaa7a11a
@ -695,7 +695,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
|
||||
|
||||
/* General vehicle properties */
|
||||
switch (variable - 0x80) {
|
||||
case 0x00: return v->type + 2;
|
||||
case 0x00: return v->type + 0x10;
|
||||
case 0x01: return MapOldSubType(v);
|
||||
case 0x04: return v->index;
|
||||
case 0x05: return GB(v->index, 8, 8);
|
||||
|
Loading…
Reference in New Issue
Block a user