Merge branch 'master' into miami

# Conflicts:
#	src/animation/AnimManager.cpp
#	src/control/CarCtrl.cpp
#	src/control/Curves.cpp
#	src/core/templates.h
This commit is contained in:
Sergeanur
2020-05-10 01:26:12 +03:00
15 changed files with 31 additions and 11 deletions

View File

@ -248,8 +248,9 @@ CAnimViewer::Update(void)
}
CPad::UpdatePads();
CPad* pad = CPad::GetPad(0);
#ifdef DEBUGMENU
DebugMenuProcess();
#endif
CStreaming::UpdateForAnimViewer();
CStreaming::RequestModel(modelId, 0);

View File

@ -29,7 +29,7 @@ bool PrintDebugCode = false;
int16 DebugCamMode;
#ifdef FREE_CAM
bool CCamera::bFreeCam = false;
bool CCamera::bFreeCam = true;
int nPreviousMode = -1;
#endif

View File

@ -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();

View File

@ -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(); }

View File

@ -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

View File

@ -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

View File

@ -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];