From ca324c005d511752b2bcdc21fdc7d6c46597469b Mon Sep 17 00:00:00 2001 From: oroborus Date: Tue, 25 Mar 2008 21:23:08 +0000 Subject: - drobne upravy v kode - vymazanie duplivitneho kodu pri "hre s GUI" a "public serverom" git-svn-id: http://opensvn.csie.org/tuxanci_ng@36 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/udp.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/udp.c') diff --git a/src/udp.c b/src/udp.c index 58e7637..e3dc6ff 100644 --- a/src/udp.c +++ b/src/udp.c @@ -121,6 +121,10 @@ int writeUdpSocket(sock_udp_t *src, sock_udp_t *dst, void *address, int len) int addrlen; int size; +#ifdef DEBUG_LOST_PACKET + if( rand() % DEBUG_LOST_PACKET == 0 )return size; +#endif + addrlen = sizeof(src->sockAddr); assert( src != NULL ); -- cgit v1.2.3