diff options
author | belugas <belugas@openttd.org> | 2007-02-16 01:35:18 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-02-16 01:35:18 +0000 |
commit | 8a466c2e2f5ae3a293e54ddd40d07e4dd83e6433 (patch) | |
tree | c09e02d43e74a7fd2a6e65723a7b894ae62cef8b | |
parent | 52bdfa5c633916131eeb67d19029fc22aca468c1 (diff) | |
download | openttd-8a466c2e2f5ae3a293e54ddd40d07e4dd83e6433.tar.xz |
(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...
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index de4a9c76f..e1ba368b7 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -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; |