mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 15:55:42 +00:00
fixed bug and weirdness in CHeli
This commit is contained in:
parent
d7eee5c130
commit
eccc4a3a5b
1 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,9 @@ CHeli::CHeli(int32 id, uint8 CreatedBy)
|
||||||
m_bTestRight = true;
|
m_bTestRight = true;
|
||||||
m_fTargetOffset = 0.0f;
|
m_fTargetOffset = 0.0f;
|
||||||
m_fSearchLightX = m_fSearchLightY = 0.0f;
|
m_fSearchLightX = m_fSearchLightY = 0.0f;
|
||||||
|
|
||||||
|
// BUG: not in game but gets initialized to CDCDCDCD in debug
|
||||||
|
m_nLastShotTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -590,7 +593,12 @@ CHeli::PreRender(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
RwRGBA col = { r, g, b, 32 };
|
RwRGBA col = { r, g, b, 32 };
|
||||||
|
#ifdef FIX_BUGS
|
||||||
|
pos.z = m_fHeliDustZ[frm];
|
||||||
|
#else
|
||||||
|
// What the hell is the point of this?
|
||||||
pos.z = m_fHeliDustZ[(i - (i&3))/4]; // advance every 4 iterations, why not just /4?
|
pos.z = m_fHeliDustZ[(i - (i&3))/4]; // advance every 4 iterations, why not just /4?
|
||||||
|
#endif
|
||||||
if(pos.z > -200.0f && GetPosition().z - pos.z < 20.0f)
|
if(pos.z > -200.0f && GetPosition().z - pos.z < 20.0f)
|
||||||
CParticle::AddParticle(PARTICLE_HELI_DUST, pos, dir, nil, 0.0f, col);
|
CParticle::AddParticle(PARTICLE_HELI_DUST, pos, dir, nil, 0.0f, col);
|
||||||
i++;
|
i++;
|
||||||
|
|
Loading…
Reference in a new issue