summaryrefslogtreecommitdiffstats
path: root/src/render
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-18 22:50:37 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-18 22:50:37 +0200
commitc4cd45d47c01d89bab28f196f03ed9cb1978005b (patch)
treeadfdb08e894945432bcfe0f84883fb3219fd2a72 /src/render
parentChanged extraOffset value. (diff)
downloadre3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.gz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.bz2
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.lz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.xz
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.tar.zst
re3-c4cd45d47c01d89bab28f196f03ed9cb1978005b.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();