X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=85f85894e86ff92a0226c26257836bd0f878f519;hb=8ef31e93656fa721dbcdc9169aff3d277632405c;hp=9226201986178582c9a617bc8e8889d065848d23;hpb=06fd9717da990f4ca78836c6d4f268f57f5c5a02;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 9226201..85f8589 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -20,7 +20,7 @@ interface uses SysUtils, Classes, MAPDEF, - g_basic, g_player, e_graphics, g_res_downloader, + g_base, g_basic, g_player, r_graphics, g_res_downloader, g_sound, g_gui, utils, md5, mempool, xprofiler, g_touch, g_weapons; @@ -452,7 +452,7 @@ uses g_triggers, g_monsters, e_sound, CONFIG, g_language, g_net, g_main, g_phys, ENet, e_msg, g_netmsg, g_netmaster, - sfs, wadreader, g_system; + sfs, wadreader, g_system, r_playermodel; // ////////////////////////////////////////////////////////////////////////// // @@ -1149,7 +1149,7 @@ begin g_Console_Init(); g_Game_SetLoadingText(_lc[I_LOAD_MODELS], 0, False); - g_PlayerModel_LoadData(); + r_PlayerModel_Initialize; // load models from all possible wad types, in all known directories // this does a loosy job (linear search, ooph!), but meh @@ -2329,6 +2329,7 @@ begin g_Game_StopAllSounds(True); gMusic.Free(); g_Game_FreeData(); + r_PlayerModel_Finalize; g_PlayerModel_FreeData(); g_Texture_DeleteAll(); g_Frames_DeleteAll();