Remove unused variable m_Force in CProjectile

This commit is contained in:
Zwelf 2022-12-20 11:36:47 +01:00
parent 3e458f8c10
commit de552c71ca
7 changed files with 0 additions and 13 deletions

View file

@ -408,7 +408,6 @@ void CCharacter::FireWeapon()
(int)(GameWorld()->GameTickSpeed() * Tuning()->m_ShotgunLifetime), //Span
false, //Freeze
false, //Explosive
0, //Force
-1 //SoundImpact
);
}
@ -435,7 +434,6 @@ void CCharacter::FireWeapon()
Lifetime, //Span
false, //Freeze
true, //Explosive
0, //Force
SOUND_GRENADE_EXPLODE //SoundImpact
); //SoundImpact
}

View file

@ -19,7 +19,6 @@ CProjectile::CProjectile(
int Span,
bool Freeze,
bool Explosive,
float Force,
int SoundImpact,
int Layer,
int Number) :
@ -30,7 +29,6 @@ CProjectile::CProjectile(
m_Direction = Dir;
m_LifeSpan = Span;
m_Owner = Owner;
m_Force = Force;
m_SoundImpact = SoundImpact;
m_StartTick = GameWorld()->GameTick();
m_Explosive = Explosive;

View file

@ -22,7 +22,6 @@ public:
int Span,
bool Freeze,
bool Explosive,
float Force,
int SoundImpact,
int Layer = 0,
int Number = 0);

View file

@ -521,7 +521,6 @@ void CCharacter::FireWeapon()
Lifetime, //Span
false, //Freeze
false, //Explosive
0, //Force
-1 //SoundImpact
);
@ -560,7 +559,6 @@ void CCharacter::FireWeapon()
Lifetime, //Span
false, //Freeze
true, //Explosive
0, //Force
SOUND_GRENADE_EXPLODE //SoundImpact
); //SoundImpact

View file

@ -20,7 +20,6 @@ CProjectile::CProjectile(
int Span,
bool Freeze,
bool Explosive,
float Force,
int SoundImpact,
int Layer,
int Number) :
@ -31,7 +30,6 @@ CProjectile::CProjectile(
m_Direction = Dir;
m_LifeSpan = Span;
m_Owner = Owner;
m_Force = Force;
//m_Damage = Damage;
m_SoundImpact = SoundImpact;
m_StartTick = Server()->Tick();

View file

@ -17,7 +17,6 @@ public:
int Span,
bool Freeze,
bool Explosive,
float Force,
int SoundImpact,
int Layer = 0,
int Number = 0);
@ -38,7 +37,6 @@ private:
int m_Type;
//int m_Damage;
int m_SoundImpact;
float m_Force;
int m_StartTick;
bool m_Explosive;

View file

@ -231,7 +231,6 @@ bool IGameController::OnEntity(int Index, int x, int y, int Layer, int Flags, bo
-2, //Span
true, //Freeze
true, //Explosive
0, //Force
(g_Config.m_SvShotgunBulletSound) ? SOUND_GRENADE_EXPLODE : -1, //SoundImpact
Layer,
Number);
@ -258,7 +257,6 @@ bool IGameController::OnEntity(int Index, int x, int y, int Layer, int Flags, bo
-2, //Span
true, //Freeze
false, //Explosive
0,
SOUND_GRENADE_EXPLODE,
Layer,
Number);