mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-24 18:55:40 +00:00
Pointless fixes
This commit is contained in:
parent
df1ad8e122
commit
8488dc791a
2 changed files with 4 additions and 5 deletions
|
@ -945,10 +945,9 @@ CPopulation::MoveCarsAndPedsOutOfAbandonedZones()
|
|||
void
|
||||
CPopulation::ConvertAllObjectsToDummyObjects()
|
||||
{
|
||||
int poolSize = CPools::GetObjectPool()->GetSize();
|
||||
for (int poolIndex = poolSize - 1; poolIndex >= 0; poolIndex--) {
|
||||
|
||||
CObject *obj = CPools::GetObjectPool()->GetSlot(poolIndex);
|
||||
uint32 i = CPools::GetObjectPool()->GetSize();
|
||||
while(i--) {
|
||||
CObject *obj = CPools::GetObjectPool()->GetSlot(i);
|
||||
if (obj) {
|
||||
if (obj->CanBeDeleted())
|
||||
ConvertToDummyObject(obj);
|
||||
|
|
|
@ -4050,7 +4050,7 @@ CAutomobile::GetHeightAboveRoad(void)
|
|||
void
|
||||
CAutomobile::PlayCarHorn(void)
|
||||
{
|
||||
int r;
|
||||
uint32 r;
|
||||
|
||||
if(m_nCarHornTimer != 0)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue