File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Client/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ bool CClientIFP::LoadIFP ( const char* szFilePath, SString strBlockName )
32
32
m_strBlockName = strBlockName;
33
33
34
34
return LoadIFPFile ( szFilePath );
35
-
36
- // Failed
37
- // return false;
38
35
}
39
36
40
37
// Temporary method to avoid memory leaks, we'll need to rewrite the entire thing ;)
@@ -67,12 +64,13 @@ void CClientIFP::UnloadIFP ( void )
67
64
free ( pKeyFrames );
68
65
}
69
66
70
- printf (" IFP unloaded sucessfully\n " );
67
+ g_pClientGame->RemoveIFPPointerFromMap ( m_strBlockName );
68
+ printf (" IFP unloaded sucessfully, removed from map as well.\n " );
71
69
}
72
70
73
71
bool CClientIFP::LoadIFPFile (const char * FilePath)
74
72
{
75
- createLoader ( FilePath);
73
+ createLoader ( FilePath );
76
74
77
75
if (loadFile ())
78
76
{
@@ -107,11 +105,7 @@ bool CClientIFP::LoadIFPFile(const char * FilePath)
107
105
return false ;
108
106
}
109
107
110
- // We need to keep this IFP somewhere, for now, insert into Animation Manager map here.
111
- // g_IFPs.push_back(IFPElement);
112
-
113
108
printf (" Exiting LoadIFPFile function\n " );
114
- // ofs << "Exiting LoadIFPFile function" << std::endl;
115
109
116
110
return true ;
117
111
}
You can’t perform that action at this time.
0 commit comments