Skip to content
Snippets Groups Projects
Commit fa022fe1 authored by phamthit's avatar phamthit
Browse files

Fix blue button realesing

parent 1c7f3f0e
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,6 @@ void handle_shoot_button(uint32_t knob_states, int* button_b_pressed, player_t*
(*num_projectiles)++;
float used_ammo = (float)(player->max_ammo - player->ammo) / 100 * 32;
printf("ammo %u\n", player->ammo);
set_ammo_count(spiled_base, (int)used_ammo);
*button_b_pressed = 1;
......@@ -177,7 +176,7 @@ void handle_button_released(uint32_t knob_states, int* button_r_pressed, int* bu
*button_g_pressed = 0;
}
if ((knob_states & (1 << 19)) == 0) {
if ((knob_states & (1 << 18)) == 0) {
*button_b_pressed = 0;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment