DEADSOFTWARE

add loading text about port forwarding
authorfgsfds <pvt.fgsfds@gmail.com>
Mon, 5 Feb 2018 17:47:49 +0000 (20:47 +0300)
committerfgsfds <pvt.fgsfds@gmail.com>
Mon, 5 Feb 2018 17:47:49 +0000 (20:47 +0300)
src/game/g_game.pas
src/game/g_language.pas

index fcb43f319d324f9cf568c3d6abd04837aabd3ebe..8e7174f31b8fd4cceea472c5fa66695c498cd220 100644 (file)
@@ -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
index 424aa2af4ead6ff684d6b60c499ccc97f4e12fd6..72508cfc1500bad2d26c377af3013879559ecc8a 100644 (file)
@@ -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'),