mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r19761) -Fix: [NewGRF] Vehicle var 43 missed AI information in purchase list.
This commit is contained in:
parent
d031034789
commit
cf0a20863f
@ -484,7 +484,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
|
|||||||
if (v == NULL) {
|
if (v == NULL) {
|
||||||
/* Vehicle does not exist, so we're in a purchase list */
|
/* Vehicle does not exist, so we're in a purchase list */
|
||||||
switch (variable) {
|
switch (variable) {
|
||||||
case 0x43: return _current_company | (LiveryHelper(object->u.vehicle.self_type, NULL) << 24); // Owner information
|
case 0x43: return _current_company | (Company::IsValidAiID(_current_company) ? 0x10000 : 0) | (LiveryHelper(object->u.vehicle.self_type, NULL) << 24); // Owner information
|
||||||
case 0x46: return 0; // Motion counter
|
case 0x46: return 0; // Motion counter
|
||||||
case 0x47: { // Vehicle cargo info
|
case 0x47: { // Vehicle cargo info
|
||||||
const Engine *e = Engine::Get(object->u.vehicle.self_type);
|
const Engine *e = Engine::Get(object->u.vehicle.self_type);
|
||||||
|
Loading…
Reference in New Issue
Block a user