Clear state correctly on mod transition

This commit is contained in:
Paul Chote
2011-05-11 20:38:47 +12:00
parent e8926ccad3
commit 00f0773dc1

View File

@@ -273,6 +273,11 @@ namespace OpenRA
// Clear static state if we have switched mods
LobbyInfoChanged = () => {};
AddChatLine = (a,b,c) => {};
ConnectionStateChanged = om => {};
BeforeGameStart = () => {};
AfterGameStart = w => {};
afterTickActions = new ActionQueue();
worldRenderer = null;
if (server != null)
server.Shutdown();