(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.

This commit is contained in:
tron
2006-06-04 09:28:33 +00:00
parent 6b1f0d610c
commit 9ee944cabb
11 changed files with 18 additions and 28 deletions

View File

@@ -1569,8 +1569,8 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
} while (v->type == VEH_Train && (v = GetNextVehicle(v)) != NULL);
if (flags & DC_EXEC && v_front->type == VEH_Train) {
// _new_train_id needs to be the front engine due to the callback function
_new_train_id = w_front->index;
// for trains this needs to be the front engine due to the callback function
_new_vehicle_id = w_front->index;
}
return total_cost;
}