summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-04-19 15:56:39 +0200
committerGitHub <noreply@github.com>2020-04-19 15:56:39 +0200
commit0f07a323c9a0a97429c551808a38249a6b8ad1ff (patch)
tree563add6e54b45ac77ab863815a8750afed24bb1e /src/render
parentMerge pull request #475 from erorcun/erorcun (diff)
parentmissing ifded (diff)
downloadre3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.gz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.bz2
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.lz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.xz
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.tar.zst
re3-0f07a323c9a0a97429c551808a38249a6b8ad1ff.zip
Diffstat (limited to 'src/render')
-rw-r--r--src/render/Shadows.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/render/Shadows.cpp b/src/render/Shadows.cpp
index 8685b93a..330f1b06 100644
--- a/src/render/Shadows.cpp
+++ b/src/render/Shadows.cpp
@@ -13,6 +13,9 @@
#include "Weather.h"
#include "ModelIndices.h"
#include "RenderBuffer.h"
+#ifdef FIX_BUGS
+#include "Replay.h"
+#endif
#include "PointLights.h"
#include "SpecialFX.h"
#include "Shadows.h"
@@ -1609,6 +1612,10 @@ CShadows::CalcPedShadowValues(CVector vecLightDir,
void
CShadows::RenderExtraPlayerShadows(void)
{
+#ifdef FIX_BUGS
+ if (CReplay::IsPlayingBack())
+ return;
+#endif
if ( CTimeCycle::GetLightShadowStrength() != 0 )
{
CVehicle *pCar = FindPlayerVehicle();