mirror of https://github.com/AxioDL/metaforce.git
Decomp fixes for CPowerBeam
This commit is contained in:
parent
4001bfe4a2
commit
74509d2a4a
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
#include "Runtime/CSimplePool.hpp"
|
#include "Runtime/CSimplePool.hpp"
|
||||||
#include "Runtime/GameGlobalObjects.hpp"
|
#include "Runtime/GameGlobalObjects.hpp"
|
||||||
|
#include "Runtime/Graphics/CCubeRenderer.hpp"
|
||||||
|
|
||||||
namespace metaforce {
|
namespace metaforce {
|
||||||
|
|
||||||
|
@ -17,8 +18,9 @@ CPowerBeam::CPowerBeam(CAssetId characterId, EWeaponType type, TUniqueId playerI
|
||||||
void CPowerBeam::PreRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf) {
|
void CPowerBeam::PreRenderGunFx(const CStateManager& mgr, const zeus::CTransform& xf) {
|
||||||
zeus::CTransform backupView = CGraphics::g_ViewMatrix;
|
zeus::CTransform backupView = CGraphics::g_ViewMatrix;
|
||||||
CGraphics::SetViewPointMatrix(xf.inverse() * backupView);
|
CGraphics::SetViewPointMatrix(xf.inverse() * backupView);
|
||||||
CGraphics::SetModelMatrix(zeus::CTransform());
|
g_Renderer->SetModelMatrix(zeus::CTransform());
|
||||||
if (x234_shotSmokeGen)
|
|
||||||
|
if (x234_shotSmokeGen && x240_smokeState != ESmokeState::Inactive)
|
||||||
x234_shotSmokeGen->Render();
|
x234_shotSmokeGen->Render();
|
||||||
CGraphics::SetViewPointMatrix(backupView);
|
CGraphics::SetViewPointMatrix(backupView);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue