diff -r 4cc327ad39d5 -r 35756db7e577 src/network/network.h --- a/src/network/network.h Sat Jun 02 19:59:29 2007 +0000 +++ b/src/network/network.h Sat Jul 14 19:42:58 2007 +0000 @@ -20,6 +20,17 @@ // nothing will happen. //#define ENABLE_NETWORK_SYNC_EVERY_FRAME +/* + * Dumps all commands that are sent/received to stderr and saves every month. + * This log can become quite large over time; say in the order of two to three + * times the bandwidth used for network games. + */ +//#define DEBUG_DUMP_COMMANDS + +#ifdef DEBUG_DUMP_COMMANDS +void CDECL debug_dump_commands(const char *s, ...); +#endif /* DEBUG_DUMP_COMMANDS */ + // 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 @@ -44,9 +55,9 @@ char company_name[NETWORK_NAME_LENGTH]; // Company name char password[NETWORK_PASSWORD_LENGTH]; // The password for the player Year inaugurated_year; // What year the company started in - int64 company_value; // The company value - int64 money; // The amount of money the company has - int64 income; // How much did the company earned last year + Money company_value; // The company value + Money money; // The amount of money the company has + Money income; // How much did the company earned last year uint16 performance; // What was his performance last month? bool use_password; // Is there a password uint16 num_vehicle[NETWORK_VEHICLE_TYPES]; // How many vehicles are there of this type? @@ -76,12 +87,38 @@ NETWORK_JOIN_STATUS_GETTING_COMPANY_INFO, }; -// language ids for server_lang and client_lang +/* Language ids for server_lang and client_lang. Do NOT modify the order. */ enum NetworkLanguage { - NETLANG_ANY = 0, - NETLANG_ENGLISH = 1, - NETLANG_GERMAN = 2, - NETLANG_FRENCH = 3, + NETLANG_ANY = 0, + NETLANG_ENGLISH, + NETLANG_GERMAN, + NETLANG_FRENCH, + NETLANG_BRAZILIAN, + NETLANG_BULGARIAN, + NETLANG_CHINESE, + NETLANG_CZECH, + NETLANG_DANISH, + NETLANG_DUTCH, + NETLANG_ESPERANTO, + NETLANG_FINNISH, + NETLANG_HUNGARIAN, + NETLANG_ICELANDIC, + NETLANG_ITALIAN, + NETLANG_JAPANESE, + NETLANG_KOREAN, + NETLANG_LITHUANIAN, + NETLANG_NORWEGIAN, + NETLANG_POLISH, + NETLANG_PORTUGUESE, + NETLANG_ROMANIAN, + NETLANG_RUSSIAN, + NETLANG_SLOVAK, + NETLANG_SLOVENIAN, + NETLANG_SPANISH, + NETLANG_SWEDISH, + NETLANG_TURKISH, + NETLANG_UKRAINIAN, + NETLANG_COUNT }; VARDEF NetworkGameInfo _network_game_info;