src/network/network.h
changeset 8247 16e1c8db6f55
parent 8121 3bc6351e7369
child 8254 1496654ca5e7
equal deleted inserted replaced
8246:4469741c1f70 8247:16e1c8db6f55
    15 //  game.
    15 //  game.
    16 // Remember: both client and server have to be compiled with this
    16 // Remember: both client and server have to be compiled with this
    17 //  option enabled to make it to work. If one of the two has it disabled
    17 //  option enabled to make it to work. If one of the two has it disabled
    18 //  nothing will happen.
    18 //  nothing will happen.
    19 //#define ENABLE_NETWORK_SYNC_EVERY_FRAME
    19 //#define ENABLE_NETWORK_SYNC_EVERY_FRAME
    20 
       
    21 /*
       
    22  * Dumps all commands that are sent/received to stderr and saves every month.
       
    23  * This log can become quite large over time; say in the order of two to three
       
    24  * times the bandwidth used for network games.
       
    25  */
       
    26 //#define DEBUG_DUMP_COMMANDS
       
    27 
       
    28 #ifdef DEBUG_DUMP_COMMANDS
       
    29 void CDECL debug_dump_commands(const char *s, ...);
       
    30 #endif /* DEBUG_DUMP_COMMANDS */
       
    31 
    20 
    32 // In theory sending 1 of the 2 seeds is enough to check for desyncs
    21 // In theory sending 1 of the 2 seeds is enough to check for desyncs
    33 //   so in theory, this next define can be left off.
    22 //   so in theory, this next define can be left off.
    34 //#define NETWORK_SEND_DOUBLE_SEED
    23 //#define NETWORK_SEND_DOUBLE_SEED
    35 
    24