summaryrefslogtreecommitdiff
path: root/src/network/network_internal.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-14 12:08:24 +0000
committerrubidium <rubidium@openttd.org>2009-05-14 12:08:24 +0000
commita5d6e23e9d2c3752e2a059325ed67026c0ebdfdb (patch)
tree89844a6b0a6dda4ea42c1e6697718394df916351 /src/network/network_internal.h
parent9dff385c3841cbb894058de2ac018bfcb7e53fd9 (diff)
downloadopenttd-a5d6e23e9d2c3752e2a059325ed67026c0ebdfdb.tar.xz
(svn r16305) -Codechange: force-enable extra sync checking when random debugging is enable and give the calling location of Chance16(R) instead of the Random call within those functions.
Diffstat (limited to 'src/network/network_internal.h')
-rw-r--r--src/network/network_internal.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/network/network_internal.h b/src/network/network_internal.h
index 48aaa0530..2f743775d 100644
--- a/src/network/network_internal.h
+++ b/src/network/network_internal.h
@@ -18,6 +18,7 @@
#include "../command_type.h"
+#ifdef RANDOM_DEBUG
/**
* If this line is enable, every frame will have a sync test
* this is not needed in normal games. Normal is like 1 sync in 100
@@ -27,13 +28,14 @@
* option enabled to make it to work. If one of the two has it disabled
* nothing will happen.
*/
-//#define ENABLE_NETWORK_SYNC_EVERY_FRAME
+#define ENABLE_NETWORK_SYNC_EVERY_FRAME
/**
* In theory sending 1 of the 2 seeds is enough to check for desyncs
* so in theory, this next define can be left off.
*/
-//#define NETWORK_SEND_DOUBLE_SEED
+#define NETWORK_SEND_DOUBLE_SEED
+#endif /* RANDOM_DEBUG */
enum MapPacket {
MAP_PACKET_START,