diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-08 16:38:22 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-08 16:38:22 -0700 |
commit | a001775f8b0b992cc7c4c5863722d02e8606b175 (patch) | |
tree | 44dfa8ab01119022b7999b27c3031a39d9d3c186 /src/game.cpp | |
parent | 193ccbdba8031a351ea622f8842b6d9a0b6cfd43 (diff) | |
parent | 611210b1e0fd9cbaed38b229462e109d8f4be385 (diff) | |
download | mana-client-a001775f8b0b992cc7c4c5863722d02e8606b175.tar.gz mana-client-a001775f8b0b992cc7c4c5863722d02e8606b175.tar.bz2 mana-client-a001775f8b0b992cc7c4c5863722d02e8606b175.tar.xz mana-client-a001775f8b0b992cc7c4c5863722d02e8606b175.zip |
Fixed include order (pedantic change)
Conflicts:
src/gui/smileycontainer.cpp
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/game.cpp b/src/game.cpp index 76eb6b82..da733fe3 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -36,6 +36,7 @@ #include "flooritemmanager.h" #include "graphics.h" #include "itemshortcut.h" +#include "smileyshortcut.h" #include "joystick.h" #include "keyboardconfig.h" #include "localplayer.h" @@ -556,15 +557,10 @@ void Game::handleInput() if (keyboard.isKeyActive(keyboard.KEY_SMILIE)) { // Emotions - Uint8 emotion=keyboard.getKeySmilieOffset(event.key.keysym.sym); - /** - * Later here: increase the size of emotion, - * and get the entry from the smiley - * shortcut object - */ + int emotion=keyboard.getKeySmilieOffset(event.key.keysym.sym); if (emotion) { - player_node->emote(emotion); + smileyShortcut->useSmiley(emotion); used = true; return; } |