Skip to content

Commit

Permalink
fix: change weapon mechanism must must wait for the reload process to…
Browse files Browse the repository at this point in the history
… be over
  • Loading branch information
iWas-Coder committed May 8, 2024
1 parent d086162 commit 949fa85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sk_scene_gameplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void sk_scene_gameplay_update(sk_state *s) {
sk_rngbuf_push(&s->shots_rb, &shot);
}
if (IsKeyPressed(s->config.controls.reload)) sk_weapon_reload(s->player.weapon);
if (GetMouseWheelMove()) sk_player_rotate_weapon(&s->player);
if (GetMouseWheelMove() && !IsSoundPlaying(s->player.weapon->sound_reload)) sk_player_rotate_weapon(&s->player);
sk_player_jump(&s->player, &s->config);
sk_player_move(&s->player, &s->config, sk_player_peek(&s->player, &s->config));
}
Expand Down

0 comments on commit 949fa85

Please sign in to comment.