From 4d988c35061147033b806d006d28dffc1f7a4be2 Mon Sep 17 00:00:00 2001 From: belugas Date: Fri, 16 Feb 2007 01:35:18 +0000 Subject: (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... --- src/newgrf.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/newgrf.cpp') 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; -- cgit v1.2.3-70-g09d2