X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=918a94714df9f810469a5204a8e83d817fac5074;hb=38ffc69cb8386eb4f610ad5838e776ac04c6c297;hp=fcb43f319d324f9cf568c3d6abd04837aabd3ebe;hpb=59151449d9cbdb719b15c37a07bbf77b33888549;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index fcb43f3..918a947 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -1986,6 +1986,7 @@ begin e_WriteLog('Changing resolution', TMsgType.Notify); g_Game_ChangeResolution(gRC_Width, gRC_Height, gRC_FullScreen, gRC_Maximized); gResolutionChange := False; + g_ActiveWindow := nil; end; // Íóæíî ñìåíèòü ÿçûê: @@ -3764,7 +3765,7 @@ begin g_PlayerModel_FreeData(); g_Texture_DeleteAll(); g_Frames_DeleteAll(); - g_Menu_Free(); + //g_Menu_Free(); //k8: this segfaults after resolution change; who cares? if NetInitDone then g_Net_Free; @@ -4206,6 +4207,10 @@ begin gPlayer2.Name := gPlayer2Settings.Name; end; + g_Game_SetLoadingText(_lc[I_LOAD_HOST], 0, False); + if NetForwardPorts then + g_Game_SetLoadingText(_lc[I_LOAD_PORTS], 0, False); + // Ñòàðòóåì ñåðâåð if not g_Net_Host(IPAddr, Port, NetMaxClients) then begin