mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 02:04:08 +00:00
PlayerInfo functions reordered into original order, FindPlayer... functions moved to PlayerInfo, improved CVector <-> RwV3d conversion, small fixes
This commit is contained in:
parent
2903ebe296
commit
cfda5eb148
30 changed files with 449 additions and 482 deletions
|
@ -941,7 +941,7 @@ CParticle *CParticle::AddParticle(tParticleType type, CVector const &vecPos, CVe
|
|||
CVector screen;
|
||||
float w, h;
|
||||
|
||||
if ( !CSprite::CalcScreenCoors(vecPos, screen, &w, &h, true) )
|
||||
if ( !CSprite::CalcScreenCoors(vecPos, &screen, &w, &h, true) )
|
||||
return nil;
|
||||
|
||||
pParticle->m_vecPosition = screen;
|
||||
|
@ -2034,7 +2034,7 @@ void CParticle::Render()
|
|||
float w;
|
||||
float h;
|
||||
|
||||
if ( CSprite::CalcScreenCoors(particle->m_vecPosition, coors, &w, &h, true) )
|
||||
if ( CSprite::CalcScreenCoors(particle->m_vecPosition, &coors, &w, &h, true) )
|
||||
{
|
||||
|
||||
if ( i == PARTICLE_ENGINE_STEAM
|
||||
|
@ -2189,7 +2189,7 @@ void CParticle::Render()
|
|||
float fTrailLength;
|
||||
CVector vecScreenPosition;
|
||||
|
||||
if ( CSprite::CalcScreenCoors(vecPrevPos, vecScreenPosition, &fTrailLength, &fRotation, true) )
|
||||
if ( CSprite::CalcScreenCoors(vecPrevPos, &vecScreenPosition, &fTrailLength, &fRotation, true) )
|
||||
{
|
||||
CVector2D vecDist
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue