File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Client/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,12 @@ void CClientIFP::UnloadIFP ( void )
50
50
{
51
51
printf (" CClientIFP::UnloadIFP ( ) called!\n " );
52
52
53
-
53
+ // first remove IFP from map, so we can indicate that it does not exist
54
+ g_pClientGame->RemoveIFPPointerFromMap ( m_strBlockName );
55
+
56
+ // remove IFP animations from replaced animations of peds/players
57
+ g_pClientGame->onClientIFPUnload ( *this );
58
+
54
59
for ( size_t i = 0 ; i < m_Animations.size (); i++ )
55
60
{
56
61
IFP_Animation * ifpAnimation = &m_Animations[i];
@@ -80,9 +85,7 @@ void CClientIFP::UnloadIFP ( void )
80
85
delete ifpAnimation->pSequencesMemory ;
81
86
}
82
87
83
- g_pClientGame->RemoveIFPPointerFromMap ( m_strBlockName );
84
-
85
- printf (" IFP unloaded sucessfully, removed from map as well.\n " );
88
+ printf (" IFP unloaded sucessfully with block name '%s'\n " , m_strBlockName.c_str ());
86
89
}
87
90
}
88
91
You can’t perform that action at this time.
0 commit comments