Remove ifndef GTA_PS2 around replays

This commit is contained in:
Sergeanur 2020-12-01 22:35:53 +02:00
parent 9461998304
commit 0b20fd7e77

View File

@ -581,9 +581,7 @@ bool CGame::Initialise(const char* datFile)
CPlane::InitPlanes(); CPlane::InitPlanes();
CCredits::Init(); CCredits::Init();
CRecordDataForChase::Init(); CRecordDataForChase::Init();
#ifndef GTA_PS2 // TODO: define for that
CReplay::Init(); CReplay::Init();
#endif
#ifdef PS2_MENU #ifdef PS2_MENU
if ( !TheMemoryCard.m_bWantToLoad ) if ( !TheMemoryCard.m_bWantToLoad )
@ -773,10 +771,8 @@ void CGame::ReloadIPLs(void)
void CGame::ShutDownForRestart(void) void CGame::ShutDownForRestart(void)
{ {
#ifndef GTA_PS2 // TODO: right define
CReplay::FinishPlayback(); CReplay::FinishPlayback();
CReplay::EmptyReplayBuffer(); CReplay::EmptyReplayBuffer();
#endif
DMAudio.DestroyAllGameCreatedEntities(); DMAudio.DestroyAllGameCreatedEntities();
for (int i = 0; i < NUMPLAYERS; i++) for (int i = 0; i < NUMPLAYERS; i++)
@ -996,9 +992,7 @@ void CGame::Process(void)
CMovingThings::Update(); CMovingThings::Update();
CWaterCannons::Update(); CWaterCannons::Update();
CUserDisplay::Process(); CUserDisplay::Process();
#ifndef GTA_PS2 // TODO: define
CReplay::Update(); CReplay::Update();
#endif
PUSH_MEMID(MEMID_WORLD); PUSH_MEMID(MEMID_WORLD);
CWorld::Process(); CWorld::Process();
@ -1011,14 +1005,10 @@ void CGame::Process(void)
CRubbish::Update(); CRubbish::Update();
CSpecialFX::Update(); CSpecialFX::Update();
CTimeCycle::Update(); CTimeCycle::Update();
#ifndef GTA_PS2 // TODO: define
if (CReplay::ShouldStandardCameraBeProcessed()) if (CReplay::ShouldStandardCameraBeProcessed())
#endif
TheCamera.Process(); TheCamera.Process();
CCullZones::Update(); CCullZones::Update();
#ifndef GTA_PS2 // TODO: define
if (!CReplay::IsPlayingBack()) if (!CReplay::IsPlayingBack())
#endif
CGameLogic::Update(); CGameLogic::Update();
CBridge::Update(); CBridge::Update();
CCoronas::DoSunAndMoon(); CCoronas::DoSunAndMoon();
@ -1026,9 +1016,7 @@ void CGame::Process(void)
CShadows::UpdateStaticShadows(); CShadows::UpdateStaticShadows();
CShadows::UpdatePermanentShadows(); CShadows::UpdatePermanentShadows();
gPhoneInfo.Update(); gPhoneInfo.Update();
#ifndef GTA_PS2 // TODO: define
if (!CReplay::IsPlayingBack()) if (!CReplay::IsPlayingBack())
#endif
{ {
PUSH_MEMID(MEMID_CARS); PUSH_MEMID(MEMID_CARS);
CCarCtrl::GenerateRandomCars(); CCarCtrl::GenerateRandomCars();