1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00

Disable opening cheats window in MP

When connecting to a server, also reset cheats.

This should fix #2811
This commit is contained in:
Michał Janiszewski
2016-01-25 15:29:31 +01:00
parent 6a3d199944
commit dd37ca05c3
4 changed files with 14 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ extern "C" {
#include "../scenario.h"
#include "../windows/error.h"
#include "../util/util.h"
#include "../cheats.h"
}
#pragma comment(lib, "Ws2_32.lib")
@@ -665,6 +666,7 @@ bool Network::BeginServer(unsigned short port, const char* address)
return false;
}
cheats_reset();
LoadGroups();
NetworkPlayer* player = AddPlayer();
@@ -852,6 +854,7 @@ void Network::UpdateClient()
if (error == 0) {
status = NETWORK_STATUS_CONNECTED;
server_connection.ResetLastPacketTime();
cheats_reset();
Client_Send_AUTH(gConfigNetwork.player_name, "");
window_network_status_open("Authenticating...");
}