We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
has_jump
1 parent 4a56992 commit c2aa1d4Copy full SHA for c2aa1d4
tests/necto/rlgym_compat/game_state.py
@@ -55,9 +55,10 @@ def _decode_player(
55
player_data.inverted_car_data.invert(player_data.car_data)
56
57
if player_info.air_state == flat.AirState.OnGround:
58
- self._on_ground_ticks[index] = 0
59
- self._air_time_since_jump[index] = 0
60
- self._has_jumped[index] = False
+ if not self._has_jumped[index] or self._air_time_since_jump[index] > 0:
+ self._has_jumped[index] = False
+ self._on_ground_ticks[index] = 0
61
+ self._air_time_since_jump[index] = 0
62
else:
63
self._on_ground_ticks[index] += ticks_elapsed
64
0 commit comments