diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-10 15:34:01 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-10 15:34:01 +0100 |
commit | 630d053a6f6ad74f1f1736d7c870ba1524034a09 (patch) | |
tree | 18796a896f018eb440916465a621484da5f02e88 /game/player | |
parent | 4d4e46551fff8aee9919bdcc550cc4f6090ee218 (diff) |
fix player scriptloek/game
Diffstat (limited to 'game/player')
-rw-r--r-- | game/player/PlayerScript.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp index 286cdaf..14ad9cd 100644 --- a/game/player/PlayerScript.cpp +++ b/game/player/PlayerScript.cpp @@ -30,6 +30,7 @@ void PlayerScript::init() { } bool PlayerScript::on_key_down(const KeyPressEvent & ev) { + if (ev.repeat) return false; if (ev.key == Keycode::SPACE) { const vec2 UP = {0, -1}; this->help_kick(UP); |