Skip to content

v1.3.3 - Fix: playerDriving check refined to mPitState

Choose a tag to compare

@seikenxa seikenxa released this 26 May 21:15
· 8 commits to main since this release

v1.3.3 - Fix: playerDriving check now uses mPitState

Fixes a regression introduced in v1.3.2 where autocam was suspended even
while the player was waiting in the pit box before going out on track.

In rF2, WantsToViewVehicle is still called during that window, so watching
other cars from the garage was possible before - and should remain possible.

Change: playerDriving check is now mIsPlayer AND mFinishStatus==0 AND mPitState==0

mPitState==0 means the car is physically on track (not in pit lane, pit box, or garage).

Behaviour:
Active lap on track => playerDriving true, camera switching suspended
Waiting in pit/garage => playerDriving false, autocam active
DNF / finished => playerDriving false, autocam active
Spectator => playerDriving false, autocam active