mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-04 05:19:59 +00:00
90% fixes, 10% skel refactoring
This commit is contained in:
parent
bcb2b7a534
commit
15918feb8e
8 changed files with 68 additions and 46 deletions
|
@ -28,7 +28,7 @@ void CCarGenerator::SwitchOff()
|
|||
|
||||
void CCarGenerator::SwitchOn()
|
||||
{
|
||||
m_nUsesRemaining = -1;
|
||||
m_nUsesRemaining = 255;
|
||||
m_nTimer = CalcNextGen();
|
||||
++CTheCarGenerators::CurrentActiveCount;
|
||||
}
|
||||
|
@ -110,8 +110,13 @@ void CCarGenerator::DoInternalProcessing()
|
|||
m_nVehicleHandle = CPools::GetVehiclePool()->GetIndex(pCar);
|
||||
}
|
||||
}
|
||||
if (m_nUsesRemaining < -1) /* I don't think this is a correct comparasion */
|
||||
#ifdef FIX_BUGS
|
||||
if (m_nUsesRemaining != 0)
|
||||
--m_nUsesRemaining;
|
||||
#else
|
||||
if (m_nUsesRemaining < -1)
|
||||
--m_nUsesRemaining;
|
||||
#endif
|
||||
m_nTimer = CalcNextGen();
|
||||
if (m_nUsesRemaining == 0)
|
||||
--CTheCarGenerators::CurrentActiveCount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue