summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-10 00:26:12 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-10 00:26:12 +0200
commit35c41208f5910ccb3d4f3aeed3980434cb4360b3 (patch)
treed49aa0fdb827960dbc3cc4c016267f6244828e61 /src/core
parentMerge pull request #528 from Nick007J/miami (diff)
parentSmall unification (diff)
downloadre3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.gz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.bz2
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.lz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.xz
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.tar.zst
re3-35c41208f5910ccb3d4f3aeed3980434cb4360b3.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/AnimViewer.cpp3
-rw-r--r--src/core/Cam.cpp2
-rw-r--r--src/core/Game.cpp3
-rw-r--r--src/core/Placeable.h2
-rw-r--r--src/core/config.h1
-rw-r--r--src/core/main.cpp12
-rw-r--r--src/core/re3.cpp2
7 files changed, 17 insertions, 8 deletions
diff --git a/src/core/AnimViewer.cpp b/src/core/AnimViewer.cpp
index 00d39066..40a8b09e 100644
--- a/src/core/AnimViewer.cpp
+++ b/src/core/AnimViewer.cpp
@@ -248,8 +248,9 @@ CAnimViewer::Update(void)
}
CPad::UpdatePads();
CPad* pad = CPad::GetPad(0);
-
+#ifdef DEBUGMENU
DebugMenuProcess();
+#endif
CStreaming::UpdateForAnimViewer();
CStreaming::RequestModel(modelId, 0);
diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp
index f7749712..ae7df51f 100644
--- a/src/core/Cam.cpp
+++ b/src/core/Cam.cpp
@@ -29,7 +29,7 @@ bool PrintDebugCode = false;
int16 DebugCamMode;
#ifdef FREE_CAM
-bool CCamera::bFreeCam = false;
+bool CCamera::bFreeCam = true;
int nPreviousMode = -1;
#endif
diff --git a/src/core/Game.cpp b/src/core/Game.cpp
index 22d4de99..3ea85659 100644
--- a/src/core/Game.cpp
+++ b/src/core/Game.cpp
@@ -604,8 +604,9 @@ void CGame::Process(void)
TheCamera.SetMotionBlurAlpha(0);
if (TheCamera.m_BlurType == MBLUR_NONE || TheCamera.m_BlurType == MBLUR_SNIPER || TheCamera.m_BlurType == MBLUR_NORMAL)
TheCamera.SetMotionBlur(0, 0, 0, 0, MBLUR_NONE);
-
+#ifdef DEBUGMENU
DebugMenuProcess();
+#endif
CCutsceneMgr::Update();
if (!CCutsceneMgr::IsCutsceneProcessing() && !CTimer::GetIsCodePaused())
FrontEndMenuManager.Process();
diff --git a/src/core/Placeable.h b/src/core/Placeable.h
index 26a2291a..7e858283 100644
--- a/src/core/Placeable.h
+++ b/src/core/Placeable.h
@@ -16,7 +16,7 @@ public:
m_matrix.GetPosition().y = y;
m_matrix.GetPosition().z = z;
}
- void SetPosition(const CVector& pos) { m_matrix.GetPosition() = pos; }
+ void SetPosition(const CVector &pos) { m_matrix.GetPosition() = pos; }
CVector &GetRight(void) { return m_matrix.GetRight(); }
CVector &GetForward(void) { return m_matrix.GetForward(); }
CVector &GetUp(void) { return m_matrix.GetUp(); }
diff --git a/src/core/config.h b/src/core/config.h
index 2ded57bf..dd4628d5 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -186,6 +186,7 @@ enum Config {
# define NO_MOVIES // disable intro videos
# define NO_CDCHECK
# define CHATTYSPLASH // print what the game is loading
+# define DEBUGMENU
//# define TIMEBARS // print debug timers
#endif
diff --git a/src/core/main.cpp b/src/core/main.cpp
index 9e0fda15..6bf8228d 100644
--- a/src/core/main.cpp
+++ b/src/core/main.cpp
@@ -91,7 +91,9 @@ void GameInit(void);
void SystemInit(void);
void TheGame(void);
+#ifdef DEBUGMENU
void DebugMenuPopulate(void);
+#endif
void
@@ -328,11 +330,10 @@ Initialise3D(void *param)
{
if (RsRwInitialise(param))
{
- //
+#ifdef DEBUGMENU
DebugMenuInit();
DebugMenuPopulate();
- //
-
+#endif // !DEBUGMENU
return CGame::InitialiseRenderWare();
}
@@ -343,8 +344,9 @@ static void
Terminate3D(void)
{
CGame::ShutdownRenderWare();
-
+#ifdef DEBUGMENU
DebugMenuShutdown();
+#endif // !DEBUGMENU
RsRwTerminate();
@@ -878,7 +880,9 @@ Render2dStuff(void)
CPad::PrintErrorMessage();
CFont::DrawFonts();
+#ifdef DEBUGMENU
DebugMenuRender();
+#endif
}
void
diff --git a/src/core/re3.cpp b/src/core/re3.cpp
index c221d64b..a2c0a9a3 100644
--- a/src/core/re3.cpp
+++ b/src/core/re3.cpp
@@ -61,6 +61,7 @@ mysrand(unsigned int seed)
myrand_seed = seed;
}
+#ifdef DEBUGMENU
void WeaponCheat();
void HealthCheat();
void TankCheat();
@@ -386,6 +387,7 @@ DebugMenuPopulate(void)
CTweakVars::AddDBG("Debug");
}
}
+#endif
const int re3_buffsize = 1024;
static char re3_buff[re3_buffsize];