X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_netmaster.pas;h=9e96a451f43f07326a693a2b78775945899ad2ea;hb=313f52c372a4fe70cdfb3fdfaf845b95e05be9d4;hp=3e5a30b8aac01efc6d66acd9f8db004076ff836a;hpb=f1e504127ee6d8a0dc680e174d524156bde9152e;p=d2df-sdl.git diff --git a/src/game/g_netmaster.pas b/src/game/g_netmaster.pas index 3e5a30b..9e96a45 100644 --- a/src/game/g_netmaster.pas +++ b/src/game/g_netmaster.pas @@ -73,7 +73,7 @@ implementation uses SysUtils, e_msg, e_input, e_graphics, e_log, g_window, g_net, g_console, - g_map, g_game, g_sound, g_textures, g_gui, g_menu, g_options, g_language, wadreader; + g_map, g_game, g_sound, g_gui, g_menu, g_options, g_language, wadreader; var NetMEvent: ENetEvent; @@ -125,7 +125,7 @@ begin if not g_Net_Slist_Connect then Exit; - e_WriteLog('Fetching serverlist...', MSG_NOTIFY); + e_WriteLog('Fetching serverlist...', TMsgType.Notify); g_Console_Add(_lc[I_NET_MSG] + _lc[I_NET_SLIST_FETCH]); NetOut.Clear(); @@ -376,15 +376,17 @@ begin begin enet_address_set_host(@NetSlistAddr, PChar(Addr(IP[1]))); NetSlistAddr.Port := Port; - e_WriteLog('Masterserver address set to ' + IP + ':' + IntToStr(Port), MSG_NOTIFY); + e_WriteLog('Masterserver address set to ' + IP + ':' + IntToStr(Port), TMsgType.Notify); end; end; procedure g_Serverlist_Draw(var SL: TNetServerList); var sy, i, y, mw, mx, l: Integer; - cw, ch: Byte; - ww, hh: Word; + cw: Byte = 0; + ch: Byte = 0; + ww: Word = 0; + hh: Word = 0; ip: string; begin ip := '';