mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-07 14:58:22 +00:00
(svn r8753) -Regression (r8455): Do not unilateraly decide that this engine is a single-headed. Only do it if it previously had no power and that now there is. Or something...
This commit is contained in:
parent
2b307647da
commit
4d988c3506
@ -215,7 +215,8 @@ static void dewagonize(int condition, int engine)
|
|||||||
|
|
||||||
if (condition != 0) {
|
if (condition != 0) {
|
||||||
ei->unk2 &= ~0x80;
|
ei->unk2 &= ~0x80;
|
||||||
rvi->railveh_type = RAILVEH_SINGLEHEAD;
|
if (rvi->railveh_type == RAILVEH_WAGON)
|
||||||
|
rvi->railveh_type = RAILVEH_SINGLEHEAD;
|
||||||
} else {
|
} else {
|
||||||
ei->unk2 |= 0x80;
|
ei->unk2 |= 0x80;
|
||||||
rvi->railveh_type = RAILVEH_WAGON;
|
rvi->railveh_type = RAILVEH_WAGON;
|
||||||
|
Loading…
Reference in New Issue
Block a user