diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-28 20:25:14 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-28 20:25:14 +0200 |
commit | 742ca47a436632eb84de925c8d3386b7bc7dd2d2 (patch) | |
tree | 8cbd7c5bb9aa70cc71a66dfdaaad3048d3d4a798 | |
parent | Merge pull request #722 from theR4K/master (diff) | |
download | re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar.gz re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar.bz2 re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar.lz re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar.xz re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.tar.zst re3-742ca47a436632eb84de925c8d3386b7bc7dd2d2.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/CarGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/CarGen.cpp b/src/vehicles/CarGen.cpp index dd727e2b..5de478b7 100644 --- a/src/vehicles/CarGen.cpp +++ b/src/vehicles/CarGen.cpp @@ -28,7 +28,7 @@ void CCarGenerator::SwitchOff() void CCarGenerator::SwitchOn() { - m_nUsesRemaining = 255; + m_nUsesRemaining = UINT16_MAX; m_nTimer = CalcNextGen(); ++CTheCarGenerators::CurrentActiveCount; } @@ -111,10 +111,10 @@ void CCarGenerator::DoInternalProcessing() } } #ifdef FIX_BUGS - if (m_nUsesRemaining != 0) + if (m_nUsesRemaining < UINT16_MAX) --m_nUsesRemaining; #else - if (m_nUsesRemaining < -1) + if (m_nUsesRemaining < ~0) --m_nUsesRemaining; #endif m_nTimer = CalcNextGen(); |