summaryrefslogtreecommitdiff
path: root/src/sdl_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_udp.c')
-rw-r--r--src/sdl_udp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sdl_udp.c b/src/sdl_udp.c
index f4888ad..175ac6c 100644
--- a/src/sdl_udp.c
+++ b/src/sdl_udp.c
@@ -125,7 +125,11 @@ int writeSdlUdpSocket(sock_sdl_udp_t *src, sock_sdl_udp_t *dst, void *address, i
assert( address != NULL );
#ifdef DEBUG_LOST_PACKET
- if( rand() % DEBUG_LOST_PACKET == 0 )return size;
+ if( rand() % DEBUG_LOST_PACKET == 0 )
+ {
+ printf("debug lost packet %s\n", address);
+ return size;
+ }
#endif
memcpy(dst->packet->data, address, len);