forked from liza/Questionable
ESC should only cancel movement if a quest is running
This commit is contained in:
parent
7d3da7ba07
commit
1cabcbd683
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user