mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r8465) -Regression (r8455): Switching from dual to single head should switch to wagon if power is zero. .Or something.
This commit is contained in:
parent
8933ffd9ac
commit
d838a477e2
@ -327,7 +327,8 @@ static bool RailVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
|
||||
rvi[i].power *= 2;
|
||||
rvi[i].running_cost_base *= 2;
|
||||
}
|
||||
rvi[i].railveh_type = RAILVEH_SINGLEHEAD;
|
||||
rvi[i].railveh_type = rvi[i].power == 0 ?
|
||||
RAILVEH_WAGON : RAILVEH_SINGLEHEAD;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user