Skip to content

Commit

Permalink
xrGamePersistent.cpp: use alias instead of typedef
Browse files Browse the repository at this point in the history
"my_super" renamed to "super"
related to previous commit of tamlin-mike:
f5d67ba
  • Loading branch information
Xottab-DUTY committed Aug 5, 2017
1 parent f5d67ba commit 51f3eb4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/xrGame/GamePersistent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
//#endif // DEBUG_MEMORY_MANAGER

// temporary hack to get rid of the Microsoft-specific "__super"
typedef IGame_Persistent my_super;
using super = IGame_Persistent;

CGamePersistent::CGamePersistent(void)
{
Expand Down Expand Up @@ -158,7 +158,7 @@ void CGamePersistent::OnAppStart()
// load game materials
GMLib.Load();
init_game_globals();
my_super::OnAppStart();
super::OnAppStart();
m_pUI_core = new ui_core();
m_pMainMenu = new CMainMenu();
}
Expand All @@ -171,20 +171,20 @@ void CGamePersistent::OnAppEnd()
xr_delete(m_pMainMenu);
xr_delete(m_pUI_core);

my_super::OnAppEnd();
super::OnAppEnd();

clean_game_globals();

GMLib.Unload();
}

void CGamePersistent::Start(LPCSTR op) { my_super::Start(op); }
void CGamePersistent::Start(LPCSTR op) { super::Start(op); }
void CGamePersistent::Disconnect()
{
// destroy ambient particles
CParticlesObject::Destroy(ambient_particles);

my_super::Disconnect();
super::Disconnect();
// stop all played emitters
::Sound->stop_emitters();
m_game_params.m_e_game_type = eGameIDNoGame;
Expand All @@ -194,7 +194,7 @@ void CGamePersistent::Disconnect()

void CGamePersistent::OnGameStart()
{
my_super::OnGameStart();
super::OnGameStart();
UpdateGameType();
}

Expand All @@ -215,7 +215,7 @@ LPCSTR GameTypeToString(EGameIDs gt, bool bShort)

void CGamePersistent::UpdateGameType()
{
my_super::UpdateGameType();
super::UpdateGameType();

m_game_params.m_e_game_type = ParseStringToGameType(m_game_params.m_game_type);

Expand All @@ -227,7 +227,7 @@ void CGamePersistent::UpdateGameType()

void CGamePersistent::OnGameEnd()
{
my_super::OnGameEnd();
super::OnGameEnd();

xr_delete(g_stalker_animation_data_storage);
xr_delete(g_stalker_velocity_holder);
Expand Down Expand Up @@ -641,7 +641,7 @@ void CGamePersistent::OnFrame()
}
#endif // MASTER_GOLD
}
my_super::OnFrame();
super::OnFrame();

if (!Device.Paused())
Engine.Sheduler.Update();
Expand Down

0 comments on commit 51f3eb4

Please sign in to comment.