Fix multiplayer weather cheat

While refactoring the freeze-climate cheat I noticed the state was not being transmitted over the network. This commit fixes that
This commit is contained in:
Martin Černáč 2016-02-19 18:23:13 +01:00
parent 4ccd12a5ec
commit 4a97743276
3 changed files with 3 additions and 1 deletions

View File

@ -860,6 +860,7 @@ int game_load_network(SDL_RWops* rw)
gCheatsIgnoreRideIntensity = SDL_ReadU8(rw);
gCheatsDisableVandalism = SDL_ReadU8(rw);
gCheatsNeverendingMarketing = SDL_ReadU8(rw);
gCheatsFreezeClimate = SDL_ReadU8(rw);
if (!load_success){
set_load_objects_fail_reason();

View File

@ -68,7 +68,7 @@ extern "C" {
// This define specifies which version of network stream current build uses.
// It is used for making sure only compatible builds get connected, even within
// single OpenRCT2 version.
#define NETWORK_STREAM_VERSION "2"
#define NETWORK_STREAM_VERSION "3"
#define NETWORK_STREAM_ID OPENRCT2_VERSION "-" NETWORK_STREAM_VERSION
#ifdef __WINDOWS__

View File

@ -1118,6 +1118,7 @@ int scenario_save_network(SDL_RWops* rw)
SDL_WriteU8(rw, gCheatsIgnoreRideIntensity);
SDL_WriteU8(rw, gCheatsDisableVandalism);
SDL_WriteU8(rw, gCheatsNeverendingMarketing);
SDL_WriteU8(rw, gCheatsFreezeClimate);
gfx_invalidate_screen();
return 1;