diff --git a/main.c b/main.c index d388fff..0f49c1b 100644 --- a/main.c +++ b/main.c @@ -154,8 +154,6 @@ static void frame(void) process(&gs, (float)sapp_frame_duration()); } - - // drawing { sgp_begin(width, height); diff --git a/server.c b/server.c index 3a343d6..c0e44ce 100644 --- a/server.c +++ b/server.c @@ -92,6 +92,7 @@ void server(void *data) else { event.peer->data = (void *)player_slot; + gs.players[player_slot] = (struct Player){ 0 }; gs.players[player_slot].connected = true; }