mirror of
https://github.com/halpz/re3.git
synced 2025-07-01 14:06:22 +00:00
CVarConsole
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
#include "Vehicle.h"
|
||||
#include "Wanted.h"
|
||||
#include "World.h"
|
||||
#include "VarConsole.h"
|
||||
|
||||
//--MIAMI: file done
|
||||
|
||||
@ -129,8 +130,15 @@ int32 hGarages = AEHANDLE_NONE;
|
||||
CGarage CGarages::aGarages[NUM_GARAGES];
|
||||
bool CGarages::bCamShouldBeOutisde;
|
||||
|
||||
#ifndef MASTER
|
||||
bool bPrintNearestObject;
|
||||
#endif
|
||||
|
||||
void CGarages::Init(void)
|
||||
{
|
||||
#ifndef MASTER
|
||||
VarConsole.Add("Print nearest object", &bPrintNearestObject, true);
|
||||
#endif
|
||||
CrushedCarId = -1;
|
||||
NumGarages = 0;
|
||||
MessageEndTime = 0;
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "Vehicle.h"
|
||||
#include "Wanted.h"
|
||||
#include "World.h"
|
||||
#include "VarConsole.h"
|
||||
|
||||
#define TIME_BETWEEN_SETPIECE_SPAWNS 20000
|
||||
|
||||
@ -23,6 +24,9 @@ void CSetPieces::Init(void)
|
||||
{
|
||||
bDebug = false;
|
||||
NumSetPieces = 0;
|
||||
#ifndef MASTER
|
||||
VarConsole.Add("Show set pieces", &bDebug, true);
|
||||
#endif
|
||||
}
|
||||
|
||||
void CSetPieces::AddOne(uint8 type, CVector2D vTriggerInf, CVector2D vTriggerSup, CVector2D vSpawn1, CVector2D vTarget1, CVector2D vSpawn2, CVector2D vTarget2)
|
||||
@ -47,6 +51,9 @@ void CSetPieces::Update(void)
|
||||
int nLast = NumSetPieces * (CTimer::GetFrameCounter() % 8 + 1) / 8;
|
||||
for (int i = nFirst; i < nLast; i++)
|
||||
aSetPieces[i].Update();
|
||||
#ifndef MASTER
|
||||
// TODO: debug code from mobile
|
||||
#endif // !MASTER
|
||||
}
|
||||
|
||||
void CSetPieces::Save(uint8* buf, uint32* size)
|
||||
|
Reference in New Issue
Block a user