]> git.seodisparate.com - jumpartifact.com_demo_0/commitdiff
Fix stuck in walker control
authorStephen Seo <seo.disparate@gmail.com>
Tue, 15 Aug 2023 06:48:51 +0000 (15:48 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 15 Aug 2023 06:48:51 +0000 (15:48 +0900)
src/screen_trunner.cc

index 0bc688274d053966a9611f7b68aad2af32d27844..def44f760bf2783e38118ec6151dd2226a80d279 100644 (file)
@@ -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);