From 630d053a6f6ad74f1f1736d7c870ba1524034a09 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 10 Jan 2025 15:34:01 +0100 Subject: fix player script --- game/player/PlayerScript.cpp | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3