From 67467f15d1dd8e545acc47c5e24beb74e4ca78b3 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 3 May 2020 17:28:54 +0200 Subject: GTA_BRIDGE and GTA_TRAIN defines --- src/core/Camera.cpp | 8 ++++++-- src/core/config.h | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/Camera.cpp b/src/core/Camera.cpp index 9a053056..379b9c36 100644 --- a/src/core/Camera.cpp +++ b/src/core/Camera.cpp @@ -633,7 +633,11 @@ CCamera::CamControl(void) m_bInitialNodeFound = false; m_bInitialNoNodeStaticsSet = false; } +#ifdef GTA_TRAIN Process_Train_Camera_Control(); +#else + assert(0 && "this can't happen"); +#endif }else{ if(((CVehicle*)pTargetEntity)->IsBoat()) boatTarget = true; @@ -2707,7 +2711,7 @@ CCamera::DontProcessObbeCinemaCamera(void) bDidWeProcessAnyCinemaCam = false; } - +#ifdef GTA_TRAIN void CCamera::LoadTrainCamNodes(char const *name) { @@ -2885,7 +2889,7 @@ CCamera::Process_Train_Camera_Control(void) } } } - +#endif void diff --git a/src/core/config.h b/src/core/config.h index 86189920..1fc78eb8 100644 --- a/src/core/config.h +++ b/src/core/config.h @@ -154,6 +154,11 @@ enum Config { //#define GTA_PS2 //#define GTA_XBOX +#ifndef MIAMI +#define GTA_TRAIN // This game has trains +#define GTA_BRIDGE // This game has the bridge +#endif + // This enables things from the PS2 version on PC #define GTA_PS2_STUFF -- cgit v1.2.3