summaryrefslogtreecommitdiff
path: root/src/players.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/players.c')
-rw-r--r--src/players.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/players.c b/src/players.c
index 82804d1..c168eb5 100644
--- a/src/players.c
+++ b/src/players.c
@@ -1,4 +1,5 @@
#include "../include/players.h"
+#include "../include/game.h"
float get_bullet_size_in_tile(platform_window* window) {
return 1 / 8.0f;
@@ -106,8 +107,6 @@ void draw_players_at_tile(platform_window* window, int x, int y) {
if (!players[i].active) continue;
if ((int)players[i].playerx != x || (int)(players[i].playery+get_player_size_in_tile()) != y) continue;
- if (players[i].id == my_id) take_player_input(window);
-
players[i].sec_since_last_shot += update_delta;
float bullets_per_sec = 10;
float time_between_bullets = 1.0f/bullets_per_sec;