Fix #9388: thread unsafe use of NetworkAdminConsole/IConsolePrint

(cherry picked from commit d7a0e80fc18b689455eaca09883fccbcc722d7e3)

# Conflicts:
#	src/debug.cpp
#	src/debug.h
#	src/table/settings/gui_settings.ini

See: https://github.com/OpenTTD/OpenTTD/pull/9456
This commit is contained in:
Rubidium
2021-07-23 21:36:17 +01:00
committed by Jonathan G Rennison
parent 63d8f3bdd7
commit 1c8f4bfaef
8 changed files with 95 additions and 17 deletions

View File

@@ -1960,6 +1960,8 @@ void GameLoop()
/* Check for UDP stuff */
if (_network_available) NetworkBackgroundLoop();
DebugSendRemoteMessages();
if (_networking && !HasModalProgress()) {
/* Multiplayer */
NetworkGameLoop();