X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=d19ceb602c36e2177f58848d1590885c65319662;hp=e505f8bea896fef70f92cf52ed64ec26f585ee3b;hb=36fb40708726d6a0659f332a09c4c371473d0394;hpb=9c0771925cdad1c02e69512635dd66d26438f13b diff --git a/src/game/g_game.pas b/src/game/g_game.pas index e505f8b..d19ceb6 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -443,7 +443,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; // ////////////////////////////////////////////////////////////////////////// // @@ -1128,7 +1128,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 @@ -2285,6 +2285,7 @@ begin g_Game_StopAllSounds(True); gMusic.Free(); g_Game_FreeData(); + r_PlayerModel_Finalize; g_PlayerModel_FreeData(); g_Texture_DeleteAll(); g_Frames_DeleteAll(); @@ -6471,4 +6472,4 @@ begin conRegVar('r_showspect', @gSpectHUD, 'show spectator hud', 'show spectator hud'); conRegVar('r_showstat', @gShowStat, 'show stats', 'show stats'); conRegVar('r_showpids', @gShowPIDs, 'show PIDs', 'show PIDs'); -end. \ No newline at end of file +end.