X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_game.pas;h=62628e7ce7b34a010a3c60fc5ff4020bfd3d0fc1;hb=98283c5d58028cf0b5204c44412f51c4a15e98a6;hp=9226201986178582c9a617bc8e8889d065848d23;hpb=06fd9717da990f4ca78836c6d4f268f57f5c5a02;p=d2df-sdl.git diff --git a/src/game/g_game.pas b/src/game/g_game.pas index 9226201..62628e7 100644 --- a/src/game/g_game.pas +++ b/src/game/g_game.pas @@ -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();