Skip to content

Commit

Permalink
[9417] Correct spelling of horizontal.
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Feb 19, 2010
1 parent b51e9c2 commit e52d450
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/game/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13349,7 +13349,7 @@ void Unit::SetFFAPvP( bool state )
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 vsin = sin(angle);
Expand All @@ -13363,13 +13363,13 @@ void Unit::KnockBackFrom(Unit* target, float horizintalSpeed, float verticalSpee
data << uint32(0); // Sequence
data << float(vcos); // x direction
data << float(vsin); // y direction
data << float(horizintalSpeed); // Horizontal speed
data << float(horizontalSpeed); // Horizontal speed
data << float(-verticalSpeed); // Z Movement speed (vertical)
((Player*)this)->GetSession()->SendPacket(&data);
}
else
{
float dis = horizintalSpeed;
float dis = horizontalSpeed;

float ox, oy, oz;
GetPosition(ox, oy, oz);
Expand Down
2 changes: 1 addition & 1 deletion src/game/Unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
void SetHover(bool on);
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 _ApplyAllAuraMods();
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9416"
#define REVISION_NR "9417"
#endif // __REVISION_NR_H__

0 comments on commit e52d450

Please sign in to comment.