Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
fixed cargen
  • Loading branch information
Nick007J committed Sep 28, 2020
1 parent 20167f3 commit 742ca47a436632eb84de925c8d3386b7bc7dd2d2
Showing with 3 additions and 3 deletions.
  1. +3 −3 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();

0 comments on commit 742ca47

Please sign in to comment.