mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +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);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue