diff options
author | erorcun <erayorcunus@gmail.com> | 2020-04-19 16:56:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-19 16:56:39 +0300 |
commit | 0f07a323c9a0a97429c551808a38249a6b8ad1ff (patch) | |
tree | 563add6e54b45ac77ab863815a8750afed24bb1e /src/render/Shadows.cpp | |
parent | f9ed50e17813d2a6708a6516e18041c7482a7462 (diff) | |
parent | bcc3a8b6c76ef5851af350ef4d839ef44d473f56 (diff) |
Merge pull request #474 from Nick007J/master
Bug fixes, mostly replay; added RegisterReference for player ped pointer
Diffstat (limited to 'src/render/Shadows.cpp')
-rw-r--r-- | src/render/Shadows.cpp | 7 |
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(); |