mrbelowski / CrewChiefV4

MIT License
102 stars 10 forks source link

rF2: fix spotter after driver swap #361

Closed kcr55 closed 6 years ago

kcr55 commented 6 years ago

Spotter was previously using mInRealtimeFC to determine if the player is driving but this does not get updated during a driver swap. This fix uses mScoringInfo.mInRealtime (which does get updated during a driver swap) and checks that one of the vehicles is the player.

TheIronWolfModding commented 6 years ago

@kcr55: please note that we will have to change this code a bit to only do checks in mapper, and update syntax to match surrounding code (usage of this. on members), but the idea will remain the same. I'll add you to the PR ;) Thanks for doing this.

mrbelowski commented 6 years ago

Not sure I agree with Vytautas here :)