mirror of https://github.com/OpenTTD/OpenTTD
(svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly
parent
d7a053578d
commit
abb17d64a1
|
@ -360,7 +360,6 @@ void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner)
|
||||||
} else {
|
} else {
|
||||||
v->owner = new_owner;
|
v->owner = new_owner;
|
||||||
v->colormap = PAL_NONE;
|
v->colormap = PAL_NONE;
|
||||||
v->group_id = DEFAULT_GROUP;
|
|
||||||
if (IsEngineCountable(v)) GetCompany(new_owner)->num_engines[v->engine_type]++;
|
if (IsEngineCountable(v)) GetCompany(new_owner)->num_engines[v->engine_type]++;
|
||||||
if (v->IsPrimaryVehicle()) v->unitnumber = unitidgen[v->type].NextID();
|
if (v->IsPrimaryVehicle()) v->unitnumber = unitidgen[v->type].NextID();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue