1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

(svn r26370) -Doc: Desync debugging and command replaying.

This commit is contained in:
frosch
2014-02-23 19:32:32 +00:00
parent e9f7103ad7
commit c6ce57e8a7
3 changed files with 263 additions and 4 deletions

View File

@@ -12,6 +12,12 @@
#ifndef NETWORK_FUNC_H
#define NETWORK_FUNC_H
/**
* Uncomment the following define to enable command replaying.
* See docs/desync.txt for details.
*/
// #define DEBUG_DUMP_COMMANDS
#include "core/address.h"
#include "network_type.h"
#include "../console_type.h"

View File

@@ -43,10 +43,7 @@
* Used to load the desync debug logs, i.e. for reproducing a desync.
* There's basically no need to ever enable this, unless you really know what
* you are doing, i.e. debugging a desync.
*
* NOTE: Define DEBUG_DUMP_COMMANDS in network_func.h or globally, else it does not
* have enough effects. For example CmdCompanyCtrl needs it to be able
* to create companies when there are not clients on this server.
* See docs/desync.txt for details.
*/
#ifdef DEBUG_DUMP_COMMANDS
extern bool _ddc_fastforward;