mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-26 02:54:14 +01:00
fixed cargen
This commit is contained in:
parent
20167f341e
commit
742ca47a43
@ -28,7 +28,7 @@ void CCarGenerator::SwitchOff()
|
|||||||
|
|
||||||
void CCarGenerator::SwitchOn()
|
void CCarGenerator::SwitchOn()
|
||||||
{
|
{
|
||||||
m_nUsesRemaining = 255;
|
m_nUsesRemaining = UINT16_MAX;
|
||||||
m_nTimer = CalcNextGen();
|
m_nTimer = CalcNextGen();
|
||||||
++CTheCarGenerators::CurrentActiveCount;
|
++CTheCarGenerators::CurrentActiveCount;
|
||||||
}
|
}
|
||||||
@ -111,10 +111,10 @@ void CCarGenerator::DoInternalProcessing()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
if (m_nUsesRemaining != 0)
|
if (m_nUsesRemaining < UINT16_MAX)
|
||||||
--m_nUsesRemaining;
|
--m_nUsesRemaining;
|
||||||
#else
|
#else
|
||||||
if (m_nUsesRemaining < -1)
|
if (m_nUsesRemaining < ~0)
|
||||||
--m_nUsesRemaining;
|
--m_nUsesRemaining;
|
||||||
#endif
|
#endif
|
||||||
m_nTimer = CalcNextGen();
|
m_nTimer = CalcNextGen();
|
||||||
|
Loading…
Reference in New Issue
Block a user