summaryrefslogtreecommitdiff
path: root/src/bullets.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 14:20:16 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-05-12 14:20:16 +0200
commitf4611412d0743084fb47d67b8924968d0b0acf97 (patch)
tree8fa5ac693a73e82aed7bfa41cf88a86181cd212a /src/bullets.c
parent6ae016f31d6fab1b7976ad3a11526c69bf90b470 (diff)
generator
Diffstat (limited to 'src/bullets.c')
-rw-r--r--src/bullets.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bullets.c b/src/bullets.c
index df06f90..7517949 100644
--- a/src/bullets.c
+++ b/src/bullets.c
@@ -60,8 +60,11 @@ void shoot(platform_window* window, u32 id, float dirx, float diry) {
add_audio_event_to_queue(EVENT_RELOAD, p->id, (vec3f){.x = p->playerx, .y = p->playery, .z = p->height});
p->interact_state = INTERACT_RELOADING;
p->sec_since_interact_state_change = 0;
+ //printf("XD!\n");
return;
}
+ //p->interact_state = INTERACT_RELOADING;
+ //p->sec_since_interact_state_change = 0;
}
bool check_if_bullet_collided_with_section(float* dist_of_closest_intersect, vec2f bstart, vec2f bend, vec2f l1, vec2f l2, vec2f* intersect_point_buf) {