summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-26 13:51:56 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-26 13:51:56 +0200
commitc32da52104cc6bbe8ed0bf1ba1a7874f015cb738 (patch)
tree844e08affaf47d1d03fb0f37eec006ae39b6e8c5 /src/socket.cpp
parent4ba5cd580d86710b54f4b523db4e8710fb56fdb6 (diff)
downloadminetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.gz
minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.bz2
minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.zip
working good
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index f4b8f4429..499ee504e 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <iostream>
#include <stdlib.h>
#include <errno.h>
+#include "utility.h"
// Debug printing options
#define DP 0
@@ -194,8 +195,8 @@ void UDPSocket::Send(const Address & destination, const void * data, int size)
{
bool dumping_packet = false;
if(INTERNET_SIMULATOR)
- dumping_packet = (rand()%10==0); //easy
- //dumping_packet = (rand()%4==0); // hard
+ dumping_packet = (myrand()%10==0); //easy
+ //dumping_packet = (myrand()%4==0); // hard
if(DP){
/*dstream<<DPS<<"UDPSocket("<<(int)m_handle