Mercurial > hg > openttd
changeset 15132:2a673f4c8d15 draft
(svn r19761) -Fix: [NewGRF] Vehicle var 43 missed AI information in purchase list.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 05 May 2010 16:55:43 +0000 |
parents | 0e34a8af002d |
children | 47f0d4c1c715 |
files | src/newgrf_engine.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -484,7 +484,7 @@ if (v == NULL) { /* Vehicle does not exist, so we're in a purchase list */ 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 0x47: { // Vehicle cargo info const Engine *e = Engine::Get(object->u.vehicle.self_type);