summaryrefslogtreecommitdiffstats
path: root/src/entities/Entity.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-24 23:06:58 +0200
committeraap <aap@papnet.eu>2019-07-24 23:06:58 +0200
commitecf03d0f54850005efdcea682a9728c0613325de (patch)
tree1018843e4d41101e759e5c91112d991fd8270049 /src/entities/Entity.cpp
parentfixed buoyancy; implemented CAutomobile::ProcessBuoyancy (diff)
parentMerge branch 'master' into master (diff)
downloadre3-ecf03d0f54850005efdcea682a9728c0613325de.tar
re3-ecf03d0f54850005efdcea682a9728c0613325de.tar.gz
re3-ecf03d0f54850005efdcea682a9728c0613325de.tar.bz2
re3-ecf03d0f54850005efdcea682a9728c0613325de.tar.lz
re3-ecf03d0f54850005efdcea682a9728c0613325de.tar.xz
re3-ecf03d0f54850005efdcea682a9728c0613325de.tar.zst
re3-ecf03d0f54850005efdcea682a9728c0613325de.zip
Diffstat (limited to '')
-rw-r--r--src/entities/Entity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entities/Entity.cpp b/src/entities/Entity.cpp
index aa2114e8..b795931f 100644
--- a/src/entities/Entity.cpp
+++ b/src/entities/Entity.cpp
@@ -405,7 +405,7 @@ CEntity::PreRender(void)
}else if(GetModelIndex() == MI_MISSILE){
CVector pos = GetPosition();
float flicker = (CGeneral::GetRandomNumber() & 0xF)/(float)0x10;
- CShadows::StoreShadowToBeRendered(SHADOWTYPE_2,
+ CShadows::StoreShadowToBeRendered(SHADOWTYPE_ADDITIVE,
gpShadowExplosionTex, &pos,
8.0f, 0.0f, 0.0f, -8.0f,
255, 200.0f*flicker, 160.0f*flicker, 120.0f*flicker,
@@ -758,7 +758,7 @@ CEntity::ProcessLightsForEntity(void)
// Light shadow
if(effect->light.shadowRange != 0.0f){
if(lightOn){
- CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_2,
+ CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE,
effect->light.shadow, &pos,
effect->light.shadowRange, 0.0f,
0.0f, -effect->light.shadowRange,
@@ -768,7 +768,7 @@ CEntity::ProcessLightsForEntity(void)
effect->col.b*CTimeCycle::GetSpriteBrightness()*effect->light.shadowIntensity/255.0f,
15.0f, 1.0f, 40.0f, false, 0.0f);
}else if(lightFlickering){
- CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_2,
+ CShadows::StoreStaticShadow((uintptr)this + i, SHADOWTYPE_ADDITIVE,
effect->light.shadow, &pos,
effect->light.shadowRange, 0.0f,
0.0f, -effect->light.shadowRange,