mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 21:44:09 +00:00
Fixing Projectile code
This commit is contained in:
parent
f9316d9cc3
commit
f7e962beaa
8 changed files with 47 additions and 34 deletions
|
@ -8,7 +8,6 @@
|
|||
#include "Automobile.h"
|
||||
#include "Boat.h"
|
||||
#include "Bridge.h"
|
||||
#include "CProjectileInfo.h"
|
||||
#include "Camera.h"
|
||||
#include "DMAudio.h"
|
||||
#include "Entity.h"
|
||||
|
@ -25,6 +24,8 @@
|
|||
#include "Plane.h"
|
||||
#include "PlayerPed.h"
|
||||
#include "Pools.h"
|
||||
#include "Projectile.h"
|
||||
#include "ProjectileInfo.h"
|
||||
#include "Replay.h"
|
||||
#include "Stats.h"
|
||||
#include "SurfaceTable.h"
|
||||
|
@ -6954,7 +6955,7 @@ cAudioManager::ProcessProjectiles()
|
|||
}
|
||||
m_sQueueSample.field_48 = 4.0;
|
||||
m_sQueueSample.field_76 = 3;
|
||||
m_sQueueSample.m_vecPos = CProjectileInfo::ms_apProjectile[i].GetPosition();
|
||||
m_sQueueSample.m_vecPos = CProjectileInfo::ms_apProjectile[i]->GetPosition();
|
||||
float distSquared = GetDistanceSquared(&m_sQueueSample.m_vecPos);
|
||||
if(distSquared < maxDist) {
|
||||
m_sQueueSample.m_fDistance = Sqrt(distSquared);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue