Tiny stuff

main
Cameron Murphy Reikes 2 years ago
parent cc184ad7f8
commit be1e694ad2

Binary file not shown.

@ -686,7 +686,7 @@ static void init(void)
/* received. Reset the peer in the event the 5 seconds */ /* received. Reset the peer in the event the 5 seconds */
/* had run out without any significant event. */ /* had run out without any significant event. */
enet_peer_reset(peer); enet_peer_reset(peer);
Log("Failed to connect to server\n"); Log("Failed to connect to server. It might be too full\n");
quit_with_popup("Failed to connect to server. Is your wifi down? It took too long.", "Connection Failure"); quit_with_popup("Failed to connect to server. Is your wifi down? It took too long.", "Connection Failure");
} }
} }

@ -236,7 +236,6 @@ void server(void *info_raw)
else else
{ {
int64_t player_slot = (int64_t)event.peer->data; int64_t player_slot = (int64_t)event.peer->data;
size_t length = event.packet->dataLength;
#define VOIP_QUEUE_DECL(queue_name, queue_data_name) \ #define VOIP_QUEUE_DECL(queue_name, queue_data_name) \
Queue queue_name = {0}; \ Queue queue_name = {0}; \
char queue_data_name[QUEUE_SIZE_FOR_ELEMENTS(sizeof(OpusPacket), VOIP_PACKET_BUFFER_SIZE)] = {0}; \ char queue_data_name[QUEUE_SIZE_FOR_ELEMENTS(sizeof(OpusPacket), VOIP_PACKET_BUFFER_SIZE)] = {0}; \

Loading…
Cancel
Save