Skip to content

Commit

Permalink
fix: fix OnPlayerMove not being called
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed Jun 15, 2024
1 parent 5eaf744 commit 0dd0055
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions GameServer/gameobjects/GamePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11707,6 +11707,21 @@ public override bool IsStrafing
}
get { return m_strafing; }
}

/// <summary>
/// Gets or sets the current speed of this player
/// </summary>
public override short CurrentSpeed
{
set
{
base.CurrentSpeed = value;
if (value != 0)
{
OnPlayerMove();
}
}
}

public virtual void OnPlayerMove()
{
Expand Down

0 comments on commit 0dd0055

Please sign in to comment.