mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-22 17:19:15 +01:00
Pointless fixes
This commit is contained in:
parent
df1ad8e122
commit
8488dc791a
@ -945,10 +945,9 @@ CPopulation::MoveCarsAndPedsOutOfAbandonedZones()
|
|||||||
void
|
void
|
||||||
CPopulation::ConvertAllObjectsToDummyObjects()
|
CPopulation::ConvertAllObjectsToDummyObjects()
|
||||||
{
|
{
|
||||||
int poolSize = CPools::GetObjectPool()->GetSize();
|
uint32 i = CPools::GetObjectPool()->GetSize();
|
||||||
for (int poolIndex = poolSize - 1; poolIndex >= 0; poolIndex--) {
|
while(i--) {
|
||||||
|
CObject *obj = CPools::GetObjectPool()->GetSlot(i);
|
||||||
CObject *obj = CPools::GetObjectPool()->GetSlot(poolIndex);
|
|
||||||
if (obj) {
|
if (obj) {
|
||||||
if (obj->CanBeDeleted())
|
if (obj->CanBeDeleted())
|
||||||
ConvertToDummyObject(obj);
|
ConvertToDummyObject(obj);
|
||||||
|
@ -4050,7 +4050,7 @@ CAutomobile::GetHeightAboveRoad(void)
|
|||||||
void
|
void
|
||||||
CAutomobile::PlayCarHorn(void)
|
CAutomobile::PlayCarHorn(void)
|
||||||
{
|
{
|
||||||
int r;
|
uint32 r;
|
||||||
|
|
||||||
if(m_nCarHornTimer != 0)
|
if(m_nCarHornTimer != 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user