(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:
belugas 2007-02-16 01:35:18 +00:00
parent 2b307647da
commit 4d988c3506
1 changed files with 2 additions and 1 deletions

View File

@ -215,7 +215,8 @@ static void dewagonize(int condition, int engine)
if (condition != 0) {
ei->unk2 &= ~0x80;
rvi->railveh_type = RAILVEH_SINGLEHEAD;
if (rvi->railveh_type == RAILVEH_WAGON)
rvi->railveh_type = RAILVEH_SINGLEHEAD;
} else {
ei->unk2 |= 0x80;
rvi->railveh_type = RAILVEH_WAGON;