X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_window.pas;h=8e6bbe80de9c9ed2f53fd5b3191ee183fa5757ae;hb=b42da28ad540794e1729cbbabb0a623287660cdc;hp=3ea192bd998ede79b04215dec5bb09251afb2ab4;hpb=ff17260e083bdf4461154b916a716cd9b61126b1;p=d2df-sdl.git diff --git a/src/game/g_window.pas b/src/game/g_window.pas index 3ea192b..8e6bbe8 100644 --- a/src/game/g_window.pas +++ b/src/game/g_window.pas @@ -44,7 +44,7 @@ uses g_console, e_input, g_options, g_game, g_basic, g_textures, e_sound, g_sound, g_menu, ENet, g_net, g_map, g_gfx, g_monsters, xprofiler, - g_touch, g_gui, g_system; + g_touch, g_gui, g_system, g_netmaster; const @@ -322,7 +322,7 @@ begin end; end; -{$IFDEF USE_SYSSTUB} +{$IFNDEF USE_SYSSTUB} PrintGLSupportedExtensions; glLegacyNPOT := GLExtensionSupported('GL_ARB_texture_non_power_of_two') or GLExtensionSupported('GL_OES_texture_npot'); {$ELSE} @@ -334,6 +334,8 @@ begin Init; Time_Old := sys_GetTicks(); + g_Net_InitLowLevel(); + // Êîìàíäíàÿ ñòðîêà if (ParamCount > 0) then g_Game_Process_Params(); @@ -347,7 +349,11 @@ begin // main loop while not ProcessMessage() do begin end; + g_Net_Slist_ShutdownAll(); + Release(); + + g_Net_DeinitLowLevel(); result := 0; end;