(svn r11068) -Codechange: remove Vehicle::HasFront as all vehicles have the Vehicle::first pointer correctly set.
This commit is contained in:
@@ -1369,7 +1369,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->HasFront() && v->IsPrimaryVehicle()) {
|
||||
if (v->IsPrimaryVehicle()) {
|
||||
/* modify speed of vehicle */
|
||||
uint16 spd = _bridge[GetBridgeType(tile)].speed;
|
||||
|
||||
|
Reference in New Issue
Block a user