mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 21:30:34 +00:00
fixed compiler errors
This commit is contained in:
parent
8705562559
commit
d59862eb5e
14 changed files with 37 additions and 32 deletions
|
@ -128,4 +128,4 @@ CShotInfo::Update()
|
|||
if (!((CTimer::GetFrameCounter() + slot) & 3))
|
||||
CWorld::SetCarsOnFire(shot.m_startPos.x, shot.m_startPos.y, shot.m_startPos.z, 4.0f, shot.m_sourceEntity);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -817,7 +817,7 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource)
|
|||
CPed *threatAttack = (CPed*)shooterPed->m_pPointGunAt;
|
||||
if ( threatAttack->IsPed() )
|
||||
{
|
||||
threatAttack->m_pedIK.GetComponentPosition((RwV3d)target, PED_MID);
|
||||
threatAttack->m_pedIK.GetComponentPosition(*(RwV3d *)&target, PED_MID);
|
||||
threatAttack->ReactToPointGun(shooter);
|
||||
}
|
||||
else
|
||||
|
@ -1483,7 +1483,7 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource)
|
|||
{
|
||||
CVector pos;
|
||||
if (shooterPed->m_pPointGunAt->IsPed()) {
|
||||
((CPed*)shooterPed->m_pPointGunAt)->m_pedIK.GetComponentPosition((RwV3d)pos, PED_MID);
|
||||
((CPed*)shooterPed->m_pPointGunAt)->m_pedIK.GetComponentPosition(*(RwV3d *)&pos, PED_MID);
|
||||
} else {
|
||||
pos = ((CPed*)shooterPed->m_pPointGunAt)->GetPosition();
|
||||
}
|
||||
|
|
|
@ -59,7 +59,8 @@ static char ms_aWeaponNames[][32] = {
|
|||
};
|
||||
|
||||
CWeaponInfo*
|
||||
CWeaponInfo::GetWeaponInfo(eWeaponType weaponType) {
|
||||
CWeaponInfo::GetWeaponInfo(eWeaponType weaponType)
|
||||
{
|
||||
return &CWeaponInfo::ms_apWeaponInfos[weaponType];
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "AnimManager.h"
|
||||
#include "AnimationId.h"
|
||||
#include "WeaponType.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue