mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-18 05:41:52 +01:00
fixed lane offset
This commit is contained in:
parent
3931dc795f
commit
a7c17a329a
@ -119,6 +119,7 @@ struct CCarPathLink
|
|||||||
float GetY(void) { return y/8.0f; }
|
float GetY(void) { return y/8.0f; }
|
||||||
float GetDirX(void) { return dirX/100.0f; }
|
float GetDirX(void) { return dirX/100.0f; }
|
||||||
float GetDirY(void) { return dirY/100.0f; }
|
float GetDirY(void) { return dirY/100.0f; }
|
||||||
|
float GetLaneOffset(void) { return width/80.0f; }
|
||||||
|
|
||||||
float OneWayLaneOffset()
|
float OneWayLaneOffset()
|
||||||
{
|
{
|
||||||
@ -126,7 +127,7 @@ struct CCarPathLink
|
|||||||
return 0.5f - 0.5f * numRightLanes;
|
return 0.5f - 0.5f * numRightLanes;
|
||||||
if (numRightLanes == 0)
|
if (numRightLanes == 0)
|
||||||
return 0.5f - 0.5f * numLeftLanes;
|
return 0.5f - 0.5f * numLeftLanes;
|
||||||
return 0.5f;
|
return 0.5f + GetLaneOffset();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user