Changeset - r73:f67a1c924bda
[Not reviewed]
master
0 1 0
truelight - 20 years ago 2004-08-17 09:29:26
truelight@openttd.org
(svn r74) -Fix: [1009631] Wrong multihead selling (Bodewes)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -777,7 +777,8 @@ int32 CmdSellRailWagon(int x, int y, uin
 
		if (p2 != 1) {
 
			// sell last part of multiheaded?
 
			last = GetLastVehicleInChain(v);
 
			if (is_firsthead_sprite(last->spritenum))
 
			// Check if the end-part is the same engine and check if it is the rear-end
 
			if (last->engine_type != first->engine_type || is_firsthead_sprite(last->spritenum))
 
				last = NULL;
 
		} else {
 
			last = NULL;
0 comments (0 inline, 0 general)