summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortalha <sarcxd@gmail.com>2025-03-01 21:20:32 +0500
committertalha <sarcxd@gmail.com>2025-03-01 21:20:32 +0500
commit672aaa06219cd87e00991e67865d03f5f44ef7cc (patch)
tree5a1273cea2e556707872d105b3de6a38a8a446e6
parentb5dc71d7b4d9e244d76a23cfb59dd782c4c36baf (diff)
removed skipping when is_collide_x
-rwxr-xr-xsource/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/main.cpp b/source/main.cpp
index 411229a..5f86f98 100755
--- a/source/main.cpp
+++ b/source/main.cpp
@@ -1227,7 +1227,7 @@ int main(int argc, char* argv[])
}
}
- if (1 || is_collide_x) {
+ {
b8 prev_collide_y = !(prev_top < t_bottom + 0.2f || prev_bottom > t_top);
b8 new_collide_x = !(p_right < t_left || p_left > t_right);
if (prev_collide_y && new_collide_x) {