diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-07-29 13:56:06 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-07-29 13:56:06 +0200 |
commit | 581cb5edfa39a263bcbcdf3e37c608a5c7758849 (patch) | |
tree | 2b25ac08ac733d3a72bd52dfbdd3028c60ce4c37 /src/core | |
parent | synch fakerw with reVC; update librw (diff) | |
download | re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar.gz re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar.bz2 re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar.lz re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar.xz re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.tar.zst re3-581cb5edfa39a263bcbcdf3e37c608a5c7758849.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/Camera.cpp | 4 | ||||
-rw-r--r-- | src/core/Fire.cpp | 7 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index c253d00f..abe0833e 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -3587,8 +3587,8 @@ CCamera::CalculateDerivedValues(void) m_cameraMatrix = Invert(m_matrix); float hfov = DEGTORAD(CDraw::GetScaledFOV()/2.0f); - float c = cos(hfov); - float s = sin(hfov); + float c = Cos(hfov); + float s = Sin(hfov); // right plane m_vecFrustumNormals[0] = CVector(c, -s, 0.0f); diff --git a/src/core/Fire.cpp b/src/core/Fire.cpp index 933c73da..c6dece6a 100644 --- a/src/core/Fire.cpp +++ b/src/core/Fire.cpp @@ -128,11 +128,8 @@ CFire::ProcessFire(void) lightpos.z = m_vecPos.z + 5.0f; if (!m_pEntity) { - CShadows::StoreStaticShadow((uintptr)this, SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &lightpos, - 7.0f, 0.0f, 0.0f, -7.0f, - 255, // this is 0 on PC which results in no shadow - nRandNumber / 2, nRandNumber / 2, 0, - 10.0f, 1.0f, 40.0f, 0, 0.0f); + CShadows::StoreStaticShadow((uintptr)this, SHADOWTYPE_ADDITIVE, gpShadowExplosionTex, &lightpos, 7.0f, 0.0f, 0.0f, -7.0f, 0, nRandNumber / 2, + nRandNumber / 2, 0, 10.0f, 1.0f, 40.0f, 0, 0.0f); } fGreen = nRandNumber / 128; fRed = nRandNumber / 128; |