diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 19:51:02 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 19:51:02 +0100 |
commit | 16917357837916d1ef88b6122218fa0d567d1ddc (patch) | |
tree | eefa561b81c48549277950692fdad714a2f501f2 /game/player/PlayerScript.h | |
parent | 0b19fe5a9168368d4be0993407dd3fc3bdfa0611 (diff) | |
parent | b9d00961a8894356c7cff7597de424a12d2841a6 (diff) |
Merge remote-tracking branch 'origin/master' into niels/game
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r-- | game/player/PlayerScript.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h index 6875b05..6a7dedb 100644 --- a/game/player/PlayerScript.h +++ b/game/player/PlayerScript.h @@ -22,8 +22,9 @@ private: private: int prev_anim = 0; std::chrono::time_point<std::chrono::steady_clock> last_fired; + std::chrono::time_point<std::chrono::steady_clock> last_switched; std::chrono::duration<float> shot_delay = std::chrono::duration<float>(0.5); - + std::chrono::duration<float> switch_delay = std::chrono::duration<float>(0.01); int current_jetpack_sound = 0; float & engine_gravity = crepe::Config::get_instance().physics.gravity; |