mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-08 16:20:34 +00:00
90% fixes, 10% skel refactoring
This commit is contained in:
parent
53e7cbbd5a
commit
ad6094ca1d
12 changed files with 104 additions and 50 deletions
|
@ -32,7 +32,7 @@ void CCarGenerator::SwitchOff()
|
|||
|
||||
void CCarGenerator::SwitchOn()
|
||||
{
|
||||
m_nUsesRemaining = -1;
|
||||
m_nUsesRemaining = 255;
|
||||
m_nTimer = CalcNextGen();
|
||||
++CTheCarGenerators::CurrentActiveCount;
|
||||
}
|
||||
|
@ -141,8 +141,14 @@ void CCarGenerator::DoInternalProcessing()
|
|||
}
|
||||
CVisibilityPlugins::SetClumpAlpha(pVehicle->GetClump(), 0);
|
||||
m_nVehicleHandle = CPools::GetVehiclePool()->GetIndex(pVehicle);
|
||||
if (m_nUsesRemaining < -1) /* I don't think this is a correct comparasion */
|
||||
/* 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