Ticket #1949: rejoined_message_wip_v1.patch
File rejoined_message_wip_v1.patch, 1.8 KB (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/gamesetup/gamesetup_mp.js
111 111 Engine.SwitchGuiPage("page_loading.xml", { 112 112 "attribs": g_GameAttributes, 113 113 "isNetworked" : true, 114 "isRejoining" : g_IsRejoining, 114 115 "playerAssignments": g_PlayerAssignments 115 116 }); 116 117 break; -
binaries/data/mods/public/gui/loading/loading.js
113 113 114 114 // Restore default cursor. 115 115 Engine.SetCursor("arrow-default"); 116 117 if (g_Data.isNetworked && g_Data.isRejoining) { 118 Engine.SendNetworkChat("/me rejoined the game"); 119 } 116 120 } -
source/ps/Game.cpp
235 235 if (CRenderer::IsInitialised()) 236 236 Render(); 237 237 238 if (g_NetClient) 239 g_NetClient->LoadFinished(); 240 238 241 // Call the reallyStartGame GUI function, but only if it exists 239 242 if (g_GUI && g_GUI->HasPages()) 240 243 { … … 243 246 g_GUI->GetActiveGUI()->GetScriptInterface()->CallFunctionVoid(global, "reallyStartGame"); 244 247 } 245 248 246 if (g_NetClient)247 g_NetClient->LoadFinished();248 249 249 debug_printf("GAME STARTED, ALL INIT COMPLETE\n"); 250 250 251 251 // The call tree we've built for pregame probably isn't useful in-game.