mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r2167) -fix: [autoreplace] trains now get the default cargo type if the engine
replaced from did not have cargo capacity (instead of refitting to passengers)
This commit is contained in:
parent
1d64640ebd
commit
4a1d9a4775
@ -1428,7 +1428,7 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
{
|
{
|
||||||
const RailVehicleInfo *rvi = RailVehInfo(new_engine_type);
|
const RailVehicleInfo *rvi = RailVehInfo(new_engine_type);
|
||||||
const RailVehicleInfo *rvi2 = RailVehInfo(old_engine_type);
|
const RailVehicleInfo *rvi2 = RailVehInfo(old_engine_type);
|
||||||
byte capacity = rvi->capacity;
|
byte capacity = rvi2->capacity;
|
||||||
Vehicle *first = GetFirstVehicleInChain(v);
|
Vehicle *first = GetFirstVehicleInChain(v);
|
||||||
|
|
||||||
//if (v->owner == _local_player) InvalidateWindowClasses(WC_TRAINS_LIST);
|
//if (v->owner == _local_player) InvalidateWindowClasses(WC_TRAINS_LIST);
|
||||||
|
Loading…
Reference in New Issue
Block a user