~ruther/NosSmooth

3185066480704d3d15e0ca95e377971e28afd661 — Rutherther 3 years ago 6387c54
fix(core): cancel player walk command on map change automatically
1 files changed, 6 insertions(+), 3 deletions(-)

M Core/NosSmooth.Core/Commands/Walking/PlayerWalkCommand.cs
M Core/NosSmooth.Core/Commands/Walking/PlayerWalkCommand.cs => Core/NosSmooth.Core/Commands/Walking/PlayerWalkCommand.cs +6 -3
@@ 20,6 20,9 @@ public record PlayerWalkCommand
    ushort TargetY,
    bool CanBeCancelledByAnother = true,
    bool WaitForCancellation = true,
    bool AllowUserCancel = true,
    bool CancelOnMapChange = true
) : ICommand, ITakeControlCommand;
\ No newline at end of file
    bool AllowUserCancel = true
) : ITakeControlCommand
{
    /// <inheritdoc />
    public bool CancelOnMapChange => true;
}
\ No newline at end of file

Do not follow this link