Fixed bug in tool_char.cpp introduced by SDL->SFML conversion (found by clang)

git-svn-id: https://svn.code.sf.net/p/extremetuxracer/code/trunk@618 0420edf4-82e4-42fc-9478-35b55e6d67a3
master
pkeus 2016-01-21 21:40:19 +00:00
parent 4e0f270f65
commit 8520c14159
1 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,9 @@ void CharKeys(sf::Keyboard::Key key, bool release, int x, int y) {
return;
}
if (key == 304) shift = !release;
if (key == 306) control = !release;
if (key == 308) alt = !release;
if (key == sf::Keyboard::LShift || key == sf::Keyboard::RShift) shift = !release;
if (key == sf::Keyboard::LControl || key == sf::Keyboard::RControl) control = !release;
if (key == sf::Keyboard::LAlt || key == sf::Keyboard::RAlt) alt = !release;
if (release) return;