diff options
author | aap <aap@papnet.eu> | 2021-02-18 12:21:52 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-02-18 12:21:52 +0100 |
commit | 996772faf2b7ed17269af194c6d9dcbdb37732fe (patch) | |
tree | cfb4d76317a169f665bf1f500e36d4aa2c0e54ec /src/weapons/WeaponEffects.cpp | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
download | re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.gz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.bz2 re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.lz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.xz re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.tar.zst re3-996772faf2b7ed17269af194c6d9dcbdb37732fe.zip |
Diffstat (limited to '')
-rw-r--r-- | src/weapons/WeaponEffects.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/weapons/WeaponEffects.cpp b/src/weapons/WeaponEffects.cpp index b0df610f..bb95ea85 100644 --- a/src/weapons/WeaponEffects.cpp +++ b/src/weapons/WeaponEffects.cpp @@ -1,5 +1,6 @@ #include "common.h" +#include "main.h" #include "WeaponEffects.h" #include "TxdStore.h" #include "Sprite.h" @@ -103,6 +104,8 @@ CWeaponEffects::Render(void) float w, h; if ( CSprite::CalcScreenCoors(gCrossHair.m_vecPos, &pos, &w, &h, true) ) { + PUSH_RENDERGROUP("CWeaponEffects::Render"); + float recipz = 1.0f / pos.z; CSprite::RenderOneXLUSprite_Rotate_Aspect(pos.x, pos.y, pos.z, w, h, @@ -119,6 +122,8 @@ CWeaponEffects::Render(void) gCrossHair.m_fRotation += 0.02f; if ( gCrossHair.m_fRotation > TWOPI ) gCrossHair.m_fRotation = 0.0; + + POP_RENDERGROUP(); } RwRenderStateSet(rwRENDERSTATEVERTEXALPHAENABLE, (void *)FALSE); |