mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
4ccd12a5ec
commit
4a97743276
|
@ -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();
|
||||
|
|
|
@ -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__
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue