fix: no false point on start
This commit is contained in:
parent
2a6f41713e
commit
6b289eecfd
2 changed files with 9 additions and 15 deletions
|
@ -99,21 +99,7 @@ namespace Domain {
|
|||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < _lastPressesWithSpecial.List.Count; i++) {
|
||||
if (i >= sequence.Count)
|
||||
break;
|
||||
|
||||
int keyPressed = _lastPressesWithSpecial.List[_lastPressesWithSpecial.List.Count - 1 - i];
|
||||
int sequenceKey = sequence[sequence.Count - 1 - i];
|
||||
|
||||
if (keyPressed != sequenceKey) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
_lastPressesWithSpecial.List.Clear();
|
||||
_lastPresses.List.Clear();
|
||||
return true;
|
||||
return ContainsSequence(sequence);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue