summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 8961c859..cc37fc5a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -511,7 +511,11 @@ void Game::handleInput()
used = true;
break;
}
+ }
+ // Smilie
+ if (keyboard.isKeyActive(keyboard.KEY_SMILIE))
+ {
// Emotions
Uint8 emotion;
switch (event.key.keysym.sym)
@@ -535,6 +539,7 @@ void Game::handleInput()
{
player_node->emote(emotion);
used = true;
+ return;
}
}
switch (event.key.keysym.sym)