diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-02 10:38:54 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-02 12:32:25 +0100 |
commit | 42e4a068bb1cd363c3ed308e10c2747a6035e2de (patch) | |
tree | 7e9ce483e3a9eab7d23ec4c4e6476f22ecfa761e /src/control/SetPieces.cpp | |
parent | Partial controller buttons support (diff) | |
download | re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.gz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.bz2 re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.lz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.xz re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.tar.zst re3-42e4a068bb1cd363c3ed308e10c2747a6035e2de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/SetPieces.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/control/SetPieces.cpp b/src/control/SetPieces.cpp index c5142a0a..bbcfa1ea 100644 --- a/src/control/SetPieces.cpp +++ b/src/control/SetPieces.cpp @@ -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) |