Closed kcr55 closed 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.
Not sure I agree with Vytautas here :)
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.