diff options
Diffstat (limited to '')
-rw-r--r-- | src/control/PathFind.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/control/PathFind.h b/src/control/PathFind.h index d3f89154..91e2e0b1 100644 --- a/src/control/PathFind.h +++ b/src/control/PathFind.h @@ -75,6 +75,15 @@ struct CCarPathLink uint8 bBridgeLights : 1; // more? + + float OneWayLaneOffset() + { + if (numLeftLanes == 0) + return 0.5f - 0.5f * numRightLanes; + if (numRightLanes == 0) + return 0.5f - 0.5f * numLeftLanes; + return 0.5f; + } }; struct CPathInfoForObject |