(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...
authorbelugas
Fri, 16 Feb 2007 01:35:18 +0000
changeset 6030 0415afaa9ac1
parent 6029 876204eb8d1e
child 6031 df88262a064a
(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
--- a/src/newgrf.cpp	Thu Feb 15 22:03:48 2007 +0000
+++ b/src/newgrf.cpp	Fri Feb 16 01:35:18 2007 +0000
@@ -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;