Restrict number of lag frames.

This commit is contained in:
Themaister 2011-11-06 20:38:42 +01:00
parent b96ab2982c
commit b4f0d9b8f8

View File

@ -375,6 +375,9 @@ static void init_buffers(netplay_t *handle)
netplay_t *netplay_new(const char *server, uint16_t port, unsigned frames, const struct snes_callbacks *cb)
{
if (frames > UDP_FRAME_PACKETS)
frames = UDP_FRAME_PACKETS;
netplay_t *handle = calloc(1, sizeof(*handle));
if (!handle)
return NULL;