From: fgsfds Date: Mon, 5 Feb 2018 17:47:49 +0000 (+0300) Subject: add loading text about port forwarding X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=1cae0b10d890468396ecbfebec4c17e941b37d82;p=d2df-sdl.git add loading text about port forwarding --- diff --git a/src/game/g_game.pas b/src/game/g_game.pas index fcb43f3..8e7174f 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -4206,6 +4206,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 diff --git a/src/game/g_language.pas b/src/game/g_language.pas index 424aa2a..72508cf 100644 --- a/src/game/g_language.pas +++ b/src/game/g_language.pas @@ -520,6 +520,8 @@ type I_LOAD_SEND_INFO, I_LOAD_WAIT_INFO, I_LOAD_DL_RES, + I_LOAD_HOST, + I_LOAD_PORTS, I_CREDITS_CAP_1, I_CREDITS_CAP_2, @@ -1574,6 +1576,10 @@ const 'Îæèäàíèå îòâåòà ([ESC] - îòìåíèòü)'), ('LOAD DL RES', 'Downloading resources...', 'Ñêà÷èâàíèå ðåñóðñîâ...'), + ('LOAD HOST', 'Initializing server...', + 'Èíèíöèàëèçàöèÿ ñåðâåðà...'), + ('LOAD PORTS', 'Forwarding ports via UPnP...', + 'Ïðîáðîñ ïîðòîâ ÷åðåç UPnP...'), ('CREDITS CAP 1', 'Doom 2D: Forever', 'Doom 2D: Forever'),