X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=c93344a6e41fb74e7125fb08afb7bff525d906d1;hb=1d3713fbf6afe719bf9ca6ba331fe75cb20b5a26;hp=54d22a183ba4a224133de8c67d6dbf2b8120bdca;hpb=d0b4e26c3755ae0cb023bcadda3e72f1c021920a;p=d2df-sdl.git diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 54d22a1..c93344a 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -214,7 +214,6 @@ var gExternalResources: array of TDiskFileInfo = nil; gMovingWallIds: array of Integer = nil; - gdbg_map_use_accel_render: Boolean = true; gdbg_map_use_accel_coldet: Boolean = true; profMapCollision: TProfiler = nil; //WARNING: FOR DEBUGGING ONLY! @@ -243,7 +242,7 @@ implementation {$ENDIF} e_input, e_log, e_res, g_items, g_console, g_weapons, g_game, g_sound, e_sound, CONFIG, - g_options, g_triggers, g_player, + g_options, g_triggers, g_player, g_window, Math, g_monsters, g_saveload, g_language, g_netmsg, sfs, xstreams, hashtable, wadreader, g_res_downloader @@ -1004,8 +1003,8 @@ end; Textures[High(Textures)].TextureName := RecName; Result := High(Textures); TextNameHash.put(HName, result); + FreeMem(ResData); end; - FreeMem(ResData); end; WAD.Free; end