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

Remove rstl::optional_object, various cleanups, implement CExplosion and CScriptDoor

This commit is contained in:
2018-04-29 20:12:41 -07:00
parent 6d60ccfd04
commit 711c3e0d2c
79 changed files with 486 additions and 189 deletions

View File

@@ -263,7 +263,8 @@ void CParticleDatabase::AddToRendererClippedParticleGenMap(const std::map<std::s
{
for (auto& e : map)
{
if (frustum.aabbFrustumTest(*e.second->GetBounds()))
auto bounds = e.second->GetBounds();
if (bounds && frustum.aabbFrustumTest(*bounds))
e.second->AddToRenderer();
}
}
@@ -274,8 +275,11 @@ void CParticleDatabase::AddToRendererClippedParticleGenMapMasked(const std::map<
for (auto& e : map)
{
if ((e.second->GetFlags() & mask) == target)
if (frustum.aabbFrustumTest(*e.second->GetBounds()))
{
auto bounds = e.second->GetBounds();
if (bounds && frustum.aabbFrustumTest(*bounds))
e.second->AddToRenderer();
}
}
}