1
0
Fork 0

(svn r74) -Fix: [1009631] Wrong multihead selling (Bodewes)

release/0.4.5
truelight 2004-08-17 09:29:26 +00:00
parent 61264942d0
commit 4e3ad7598f
1 changed files with 2 additions and 1 deletions

View File

@ -777,7 +777,8 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
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;