mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[9417] Correct spelling of horizontal.
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
61556d8ff0
commit
04e6187049
3 changed files with 5 additions and 5 deletions
|
|
@ -13349,7 +13349,7 @@ void Unit::SetFFAPvP( bool state )
|
||||||
CallForAllControlledUnits(SetFFAPvPHelper(state),true,true,true);
|
CallForAllControlledUnits(SetFFAPvPHelper(state),true,true,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::KnockBackFrom(Unit* target, float horizintalSpeed, float verticalSpeed)
|
void Unit::KnockBackFrom(Unit* target, float horizontalSpeed, float verticalSpeed)
|
||||||
{
|
{
|
||||||
float angle = this == target ? GetOrientation() + M_PI_F : target->GetAngle(this);
|
float angle = this == target ? GetOrientation() + M_PI_F : target->GetAngle(this);
|
||||||
float vsin = sin(angle);
|
float vsin = sin(angle);
|
||||||
|
|
@ -13363,13 +13363,13 @@ void Unit::KnockBackFrom(Unit* target, float horizintalSpeed, float verticalSpee
|
||||||
data << uint32(0); // Sequence
|
data << uint32(0); // Sequence
|
||||||
data << float(vcos); // x direction
|
data << float(vcos); // x direction
|
||||||
data << float(vsin); // y direction
|
data << float(vsin); // y direction
|
||||||
data << float(horizintalSpeed); // Horizontal speed
|
data << float(horizontalSpeed); // Horizontal speed
|
||||||
data << float(-verticalSpeed); // Z Movement speed (vertical)
|
data << float(-verticalSpeed); // Z Movement speed (vertical)
|
||||||
((Player*)this)->GetSession()->SendPacket(&data);
|
((Player*)this)->GetSession()->SendPacket(&data);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float dis = horizintalSpeed;
|
float dis = horizontalSpeed;
|
||||||
|
|
||||||
float ox, oy, oz;
|
float ox, oy, oz;
|
||||||
GetPosition(ox, oy, oz);
|
GetPosition(ox, oy, oz);
|
||||||
|
|
|
||||||
|
|
@ -1731,7 +1731,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
||||||
void SetHover(bool on);
|
void SetHover(bool on);
|
||||||
bool isHover() const { return HasAuraType(SPELL_AURA_HOVER); }
|
bool isHover() const { return HasAuraType(SPELL_AURA_HOVER); }
|
||||||
|
|
||||||
void KnockBackFrom(Unit* target, float horizintalSpeed, float verticalSpeed);
|
void KnockBackFrom(Unit* target, float horizontalSpeed, float verticalSpeed);
|
||||||
|
|
||||||
void _RemoveAllAuraMods();
|
void _RemoveAllAuraMods();
|
||||||
void _ApplyAllAuraMods();
|
void _ApplyAllAuraMods();
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9416"
|
#define REVISION_NR "9417"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue