mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-02 09:40:35 +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
4438b99ae4
commit
8b4f046fd1
@ -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