mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-13 06:00:33 +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
cc5af26417
commit
e9a5670348
28 changed files with 470 additions and 476 deletions
|
@ -385,7 +385,7 @@ CWeapon::FireMelee(CEntity *shooter, CVector &fireSource)
|
|||
if ( victimPed->bUsesCollision || victimPed->Dead() || victimPed->Driving() )
|
||||
{
|
||||
CVector victimPedPos = victimPed->GetPosition();
|
||||
if ( SQR(victimPedRadius) > (victimPedPos-(*fireSource)).MagnitudeSqr() )
|
||||
if ( SQR(victimPedRadius) > (victimPedPos-fireSource).MagnitudeSqr() )
|
||||
{
|
||||
CVector collisionDist;
|
||||
|
||||
|
@ -393,7 +393,7 @@ CWeapon::FireMelee(CEntity *shooter, CVector &fireSource)
|
|||
while ( s < victimPedCol->numSpheres )
|
||||
{
|
||||
CColSphere *sphere = &victimPedCol->spheres[s];
|
||||
collisionDist = victimPedPos+sphere->center-(*fireSource);
|
||||
collisionDist = victimPedPos+sphere->center-fireSource;
|
||||
|
||||
if ( SQR(sphere->radius + info->m_fRadius) > collisionDist.MagnitudeSqr() )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue