diff options
author | David Athay <ko2fan@gmail.com> | 2008-07-24 15:04:17 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-07-24 15:04:17 +0000 |
commit | d4f8ecd0b1e4c8a2ba6949f83c474eb4dcf9a5be (patch) | |
tree | 9da53ae2e38053f6f157ede1797785354725b2cd /src | |
parent | 19a3d8395772b65d0624d2413c2e7e8b845cdb7d (diff) | |
download | mana-d4f8ecd0b1e4c8a2ba6949f83c474eb4dcf9a5be.tar.gz mana-d4f8ecd0b1e4c8a2ba6949f83c474eb4dcf9a5be.tar.bz2 mana-d4f8ecd0b1e4c8a2ba6949f83c474eb4dcf9a5be.tar.xz mana-d4f8ecd0b1e4c8a2ba6949f83c474eb4dcf9a5be.zip |
Reverted
Alt-Gr fix. Added NPC error messages.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 2 | ||||
-rw-r--r-- | src/net/npchandler.cpp | 3 | ||||
-rw-r--r-- | src/net/protocol.h | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index afd4cba4..e2343f39 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -652,7 +652,7 @@ void Game::handleInput() // Keys pressed together with Alt/Meta // Emotions and some internal gui windows #ifndef __APPLE__ - if (event.key.keysym.mod & KMOD_ALT && event.key.keysym.mod ^ KMOD_LCTRL) + if (event.key.keysym.mod & KMOD_LALT) #else if (event.key.keysym.mod & KMOD_LMETA) #endif diff --git a/src/net/npchandler.cpp b/src/net/npchandler.cpp index a838c844..58c2c9ed 100644 --- a/src/net/npchandler.cpp +++ b/src/net/npchandler.cpp @@ -40,6 +40,7 @@ NPCHandler::NPCHandler() static const Uint16 _messages[] = { GPMSG_NPC_CHOICE, GPMSG_NPC_MESSAGE, + GPMSG_NPC_ERROR, 0 }; handledMessages = _messages; @@ -66,6 +67,8 @@ void NPCHandler::handleMessage(MessageIn &msg) npcListDialog->setVisible(true); break; + case GPMSG_NPC_ERROR: + current_npc = NULL; case GPMSG_NPC_MESSAGE: npcTextDialog->addText(msg.readString(msg.getUnreadLength())); npcListDialog->setVisible(false); diff --git a/src/net/protocol.h b/src/net/protocol.h index 52db350b..9213d329 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -113,6 +113,7 @@ enum { GPMSG_NPC_BUY = 0x02B5, // W being id, { W item id, W amount, W cost }* GPMSG_NPC_SELL = 0x02B6, // W being id, { W item id, W amount, W cost }* PGMSG_NPC_BUYSELL = 0x02B7, // W item id, W amount + GPMSG_NPC_ERROR = 0x02B8, // B error PGMSG_TRADE_REQUEST = 0x02C0, // W being id GPMSG_TRADE_REQUEST = 0x02C1, // W being id GPMSG_TRADE_START = 0x02C2, // - |