author | truelight |
Tue, 17 Aug 2004 09:29:26 +0000 | |
changeset 73 | 34d5f66cfad7 |
parent 72 | 24bdf837198c |
child 74 | d23a80ef6361 |
train_cmd.c | file | annotate | diff | comparison | revisions |
--- a/train_cmd.c Tue Aug 17 09:23:25 2004 +0000 +++ b/train_cmd.c Tue Aug 17 09:29:26 2004 +0000 @@ -777,7 +777,8 @@ 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;