changeset 6030:30e1078b2ef7 draft

(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...
author belugas <belugas@openttd.org>
date Fri, 16 Feb 2007 01:35:18 +0000
parents 8b8d19fcfe08
children 5d5695b62ae4
files src/newgrf.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -215,7 +215,8 @@
 
 	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;