4343#include " ai_debug.h"
4444#endif // _EDITOR
4545
46- // static void * ode_alloc (size_t size) { return xr_malloc(size); }
47- // static void * ode_realloc (void *ptr, size_t oldsize, size_t newsize) { return xr_realloc(ptr,newsize); }
48- // static void ode_free (void *ptr, size_t size) { return xr_free(ptr); }
4946
50- // temporary hack to get rid of the Microsoft-specific "__super"
51- using super = IGame_Persistent;
5247
5348CGamePersistent::CGamePersistent (void )
5449{
@@ -74,12 +69,7 @@ CGamePersistent::CGamePersistent(void)
7469 m_frame_counter = 0 ;
7570 m_last_stats_frame = u32 (-2 );
7671#endif
77- //
78- // dSetAllocHandler (ode_alloc );
79- // dSetReallocHandler (ode_realloc );
80- // dSetFreeHandler (ode_free );
8172
82- //
8373 BOOL bDemoMode = (0 != strstr (Core.Params , " -demomode " ));
8474 if (bDemoMode)
8575 {
@@ -115,7 +105,7 @@ CGamePersistent::~CGamePersistent(void)
115105void CGamePersistent::PreStart (LPCSTR op)
116106{
117107 pApp->SetLoadingScreen (new UILoadingScreen ());
118- super ::PreStart (op);
108+ inherited ::PreStart (op);
119109}
120110
121111void CGamePersistent::RegisterModel (IRenderVisual* V)
@@ -158,7 +148,7 @@ void CGamePersistent::OnAppStart()
158148 // load game materials
159149 GMLib.Load ();
160150 init_game_globals ();
161- super ::OnAppStart ();
151+ inherited ::OnAppStart ();
162152 m_pUI_core = new ui_core ();
163153 m_pMainMenu = new CMainMenu ();
164154}
@@ -171,20 +161,20 @@ void CGamePersistent::OnAppEnd()
171161 xr_delete (m_pMainMenu);
172162 xr_delete (m_pUI_core);
173163
174- super ::OnAppEnd ();
164+ inherited ::OnAppEnd ();
175165
176166 clean_game_globals ();
177167
178168 GMLib.Unload ();
179169}
180170
181- void CGamePersistent::Start (LPCSTR op) { super ::Start (op); }
171+ void CGamePersistent::Start (LPCSTR op) { inherited ::Start (op); }
182172void CGamePersistent::Disconnect ()
183173{
184174 // destroy ambient particles
185175 CParticlesObject::Destroy (ambient_particles);
186176
187- super ::Disconnect ();
177+ inherited ::Disconnect ();
188178 // stop all played emitters
189179 GEnv.Sound ->stop_emitters ();
190180 m_game_params.m_e_game_type = eGameIDNoGame;
@@ -194,7 +184,7 @@ void CGamePersistent::Disconnect()
194184
195185void CGamePersistent::OnGameStart ()
196186{
197- super ::OnGameStart ();
187+ inherited ::OnGameStart ();
198188 UpdateGameType ();
199189}
200190
@@ -215,7 +205,7 @@ LPCSTR GameTypeToString(EGameIDs gt, bool bShort)
215205
216206void CGamePersistent::UpdateGameType ()
217207{
218- super ::UpdateGameType ();
208+ inherited ::UpdateGameType ();
219209
220210 m_game_params.m_e_game_type = ParseStringToGameType (m_game_params.m_game_type );
221211
@@ -227,7 +217,7 @@ void CGamePersistent::UpdateGameType()
227217
228218void CGamePersistent::OnGameEnd ()
229219{
230- super ::OnGameEnd ();
220+ inherited ::OnGameEnd ();
231221
232222 xr_delete (g_stalker_animation_data_storage);
233223 xr_delete (g_stalker_velocity_holder);
@@ -642,7 +632,7 @@ void CGamePersistent::OnFrame()
642632 }
643633#endif // MASTER_GOLD
644634 }
645- super ::OnFrame ();
635+ inherited ::OnFrame ();
646636
647637 if (!Device.Paused ())
648638 {
0 commit comments