From: Stephen Seo Date: Tue, 15 Aug 2023 06:48:51 +0000 (+0900) Subject: Fix stuck in walker control X-Git-Url: https://git.seodisparate.com/stephenseo/static/gitweb.js?a=commitdiff_plain;h=8a32f1e2e5b7117d169c5711338d269bcb636262;p=jumpartifact.com_demo_0 Fix stuck in walker control --- diff --git a/src/screen_trunner.cc b/src/screen_trunner.cc index 0bc6882..def44f7 100644 --- a/src/screen_trunner.cc +++ b/src/screen_trunner.cc @@ -272,7 +272,9 @@ bool TRunnerScreen::update(float dt) { walkers[controlled_walker_idx.value()].player_idle(); goto post_check_click; } - } else if (IsMouseButtonPressed(0)) { + } + + if (IsMouseButtonPressed(0)) { float press_x = GetTouchX(); float press_y = GetTouchY(); Ray ray = GetMouseRay(Vector2{press_x, press_y}, camera);