ESC should only cancel movement if a quest is running

This commit is contained in:
Liza 2024-07-10 08:54:08 +02:00
parent 7d3da7ba07
commit 1cabcbd683
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -74,9 +74,11 @@ internal sealed class QuestController
if (_keyState[VirtualKey.ESCAPE]) if (_keyState[VirtualKey.ESCAPE])
{ {
if (_currentTask != null || _taskQueue.Count > 0) if (_currentTask != null || _taskQueue.Count > 0)
{
Stop("ESC pressed"); Stop("ESC pressed");
_movementController.Stop(); _movementController.Stop();
} }
}
if (CurrentQuest != null && CurrentQuest.Quest.Data.TerritoryBlacklist.Contains(_clientState.TerritoryType)) if (CurrentQuest != null && CurrentQuest.Quest.Data.TerritoryBlacklist.Contains(_clientState.TerritoryType))
return; return;