Fix Clang Tidy warning
This commit is contained in:
parent
443f832a84
commit
ebed3ee8f1
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void Game::processEvents(InputState & inputState) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (event && event.value().type == sf::Event::KeyPressed && event.value().key.code == sf::Keyboard::A) {
|
||||
if (sf::Keyboard::isKeyPressed(sf::Keyboard::A)) {
|
||||
inputState.enableAI = !inputState.enableAI;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue