summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-16 12:40:20 +0200
committerGitHub <noreply@github.com>2020-05-16 12:40:20 +0200
commit81e711517d30846b0387a01a8d40d40ea9ae47c1 (patch)
tree8215b0cc9170c387f504cf58a4c6bcb5cbc37f07 /src/rw
parentremove some unneeded plane paths for the moment; also different exe icon (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.gz
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.bz2
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.lz
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.xz
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.tar.zst
re3-81e711517d30846b0387a01a8d40d40ea9ae47c1.zip
Diffstat (limited to '')
-rw-r--r--src/rw/VisibilityPlugins.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp
index 5a94e8f6..3b68c981 100644
--- a/src/rw/VisibilityPlugins.cpp
+++ b/src/rw/VisibilityPlugins.cpp
@@ -139,6 +139,8 @@ static float PitchToCamera;
void
CVisibilityPlugins::SetupVehicleVariables(RpClump *vehicle)
{
+ if (vehicle->object.type != rpCLUMP)
+ return;
DistToCameraSq = GetDistanceSquaredFromCamera(RpClumpGetFrame(vehicle));
RwV3d distToCam;
RwV3dSub(&distToCam, ms_pCameraPosn, &RwFrameGetMatrix(RpClumpGetFrame(vehicle))->pos);