2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Various movement and HUD bug fixes

This commit is contained in:
Jack Andersen
2017-12-18 17:05:50 -10:00
parent 1bb7e882a0
commit 1c44f8d1bc
37 changed files with 84 additions and 62 deletions

View File

@@ -437,6 +437,8 @@ void CStateManager::SetActorAreaId(CActor& actor, TAreaId aid)
area->GetAreaObjects()->RemoveObject(actor.GetUniqueId());
}
actor.x4_areaId = aid;
if (aid == kInvalidAreaId)
return;
CGameArea* area = x850_world->GetArea(aid);
@@ -1825,6 +1827,13 @@ void CStateManager::ProcessInput(const CFinalInput& input)
x870_cameraManager->ProcessInput(input, *this);
}
void CStateManager::UpdateGraphicsTiming(float dt)
{
xf14_curTimeMod900 += dt;
if (xf14_curTimeMod900 > 900.f)
xf14_curTimeMod900 -= 900.f;
}
void CStateManager::Update(float dt)
{
CElementGen::SetGlobalSeed(x8d8_updateFrameIdx);
@@ -1832,10 +1841,6 @@ void CStateManager::Update(float dt)
CDecal::SetGlobalSeed(x8d8_updateFrameIdx);
CProjectileWeapon::SetGlobalSeed(x8d8_updateFrameIdx);
xf14_curTimeMod900 += dt;
if (xf14_curTimeMod900 > 900.f)
xf14_curTimeMod900 -= 900.f;
xf08_pauseHudMessage = {};
CScriptEffect::ResetParticleCounts();