forked from mirror/OpenTTD
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
This commit is contained in:
@@ -1427,7 +1427,7 @@ static uint32 VehicleEnter_TunnelBridge(Vehicle *v, TileIndex tile, int x, int y
|
||||
} else if (IsBridge(tile)) { // XXX is this necessary?
|
||||
DiagDirection dir;
|
||||
|
||||
if (v->type == VEH_ROAD || (v->type == VEH_TRAIN && IsFrontEngine(v))) {
|
||||
if (v->HasFront() && v->IsPrimaryVehicle()) {
|
||||
/* modify speed of vehicle */
|
||||
uint16 spd = _bridge[GetBridgeType(tile)].speed;
|
||||
|
||||
|
Reference in New Issue
Block a user