Chunnel: Add a ground veh flag for (maybe) being in a chunnel
Use this to avoid inclination change code in non-chunnel wormholes.
This commit is contained in:
@@ -2108,6 +2108,7 @@ static VehicleEnterTileStatus VehicleEnter_TunnelBridge(Vehicle *v, TileIndex ti
|
||||
if (frame == _tunnel_visibility_frame[dir]) {
|
||||
t->tile = tile;
|
||||
t->track = TRACK_BIT_WORMHOLE;
|
||||
if (Tunnel::GetByTile(tile)->is_chunnel) SetBit(t->gv_flags, GVF_CHUNNEL_BIT);
|
||||
t->vehstatus |= VS_HIDDEN;
|
||||
return VETSB_ENTERED_WORMHOLE;
|
||||
}
|
||||
@@ -2133,6 +2134,7 @@ static VehicleEnterTileStatus VehicleEnter_TunnelBridge(Vehicle *v, TileIndex ti
|
||||
rv->tile = tile;
|
||||
rv->cur_image_valid_dir = INVALID_DIR;
|
||||
rv->state = RVSB_WORMHOLE;
|
||||
if (Tunnel::GetByTile(tile)->is_chunnel) SetBit(rv->gv_flags, GVF_CHUNNEL_BIT);
|
||||
rv->vehstatus |= VS_HIDDEN;
|
||||
return VETSB_ENTERED_WORMHOLE;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user