diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-11 23:33:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 23:33:13 +0200 |
commit | 5f40f06bf024e3806e0fe5a92ca14ee6b22a9933 (patch) | |
tree | 3008c5a5977736453221f00daa1f34f9d292906b /src/render/Shadows.cpp | |
parent | RenderPedCB from VC (diff) | |
parent | Fix appveyor (hopefully) (diff) | |
download | re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.gz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.bz2 re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.lz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.xz re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.tar.zst re3-5f40f06bf024e3806e0fe5a92ca14ee6b22a9933.zip |
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r-- | src/render/Shadows.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp index cefc1d9f..69f9dce0 100644 --- a/src/render/Shadows.cpp +++ b/src/render/Shadows.cpp @@ -645,7 +645,7 @@ CShadows::StoreShadowForPole(CEntity *pPole, float fOffsetX, float fOffsetY, flo PolePos.x += -CTimeCycle::GetSunPosition().x * (fPoleHeight / 2); PolePos.y += -CTimeCycle::GetSunPosition().y * (fPoleHeight / 2); - StoreStaticShadow((uint32)pPole + nID + _TODOCONST(51), SHADOWTYPE_DARK, gpPostShadowTex, &PolePos, + StoreStaticShadow((uintptr)pPole + nID + _TODOCONST(51), SHADOWTYPE_DARK, gpPostShadowTex, &PolePos, -CTimeCycle::GetSunPosition().x * (fPoleHeight / 2), -CTimeCycle::GetSunPosition().y * (fPoleHeight / 2), CTimeCycle::GetShadowSideX() * fPoleWidth, @@ -1516,7 +1516,7 @@ CShadows::UpdatePermanentShadows(void) // timePassed == aPermanentShadows[i].m_nLifeTime -> 0 float fMult = 1.0f - float(timePassed - (aPermanentShadows[i].m_nLifeTime * 3 / 4)) / (aPermanentShadows[i].m_nLifeTime / 4); - StoreStaticShadow((uint32)&aPermanentShadows[i], + StoreStaticShadow((uintptr)&aPermanentShadows[i], aPermanentShadows[i].m_nType, aPermanentShadows[i].m_pTexture, &aPermanentShadows[i].m_vecPos, @@ -1533,7 +1533,7 @@ CShadows::UpdatePermanentShadows(void) } else { - StoreStaticShadow((uint32)&aPermanentShadows[i], + StoreStaticShadow((uintptr)&aPermanentShadows[i], aPermanentShadows[i].m_nType, aPermanentShadows[i].m_pTexture, &aPermanentShadows[i].m_vecPos, |