more CCarCtrl

This commit is contained in:
Nikolay Korolev
2019-09-14 20:53:04 +03:00
parent 3e71c15b33
commit 57f24ad533
8 changed files with 535 additions and 41 deletions

View File

@@ -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