summaryrefslogtreecommitdiffstats
path: root/src/core/Cam.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-12-02 00:34:51 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-12-02 00:34:51 +0100
commitfda58fb1dfaba95c72f564d155560abd8d10b794 (patch)
treeea8dbbff0e92086a2badcb495fb82408077a4e39 /src/core/Cam.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar.gz
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar.bz2
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar.lz
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar.xz
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.tar.zst
re3-fda58fb1dfaba95c72f564d155560abd8d10b794.zip
Diffstat (limited to '')
-rw-r--r--src/core/Cam.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index 0e1c9d9f..3913274a 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -263,9 +263,11 @@ CCam::Process(void)
case MODE_FIGHT_CAM_RUNABOUT:
Process_1rstPersonPedOnPC(CameraTarget, TargetOrientation, SpeedVar, TargetSpeedVar);
break;
+#ifdef GTA_SCENE_EDIT
case MODE_EDITOR:
Process_Editor(CameraTarget, TargetOrientation, SpeedVar, TargetSpeedVar);
break;
+#endif
default:
Source = CVector(0.0f, 0.0f, 0.0f);
Front = CVector(0.0f, 1.0f, 0.0f);
@@ -3919,6 +3921,7 @@ CCam::Process_Debug(const CVector&, float, float, float)
}
#endif
+#ifdef GTA_SCENE_EDIT
void
CCam::Process_Editor(const CVector&, float, float, float)
{
@@ -3935,7 +3938,6 @@ CCam::Process_Editor(const CVector&, float, float, float)
FOV = DefaultFOV;
Alpha += DEGTORAD(CPad::GetPad(1)->GetLeftStickY()) / 50.0f;
Beta += DEGTORAD(CPad::GetPad(1)->GetLeftStickX()*1.5f) / 19.0f;
-
if(CamTargetEntity && CSceneEdit::m_bCameraFollowActor){
TargetCoors = CamTargetEntity->GetPosition();
}else if(CSceneEdit::m_bRecording){
@@ -3997,6 +3999,7 @@ CCam::Process_Editor(const CVector&, float, float, float)
sprintf(str, "Look@: %f, Look@: %f, Look@: %f ", Front.x + Source.x, Front.y + Source.y, Front.z + Source.z);
}
}
+#endif
void
CCam::Process_ModelView(const CVector &CameraTarget, float, float, float)