diff options
author | Alexander Baldeck <alexander@archlinux.org> | 2004-12-14 11:08:06 +0000 |
---|---|---|
committer | Alexander Baldeck <alexander@archlinux.org> | 2004-12-14 11:08:06 +0000 |
commit | 0d6eaf005932b81962674471423b3e4fbb3e3131 (patch) | |
tree | d3f85840bb823326a1d06d33378d03240a2a291f /src/gui/chat.cpp | |
parent | 06ec14ad383fd1eb91cfb09882ceed919dc9c56f (diff) | |
download | mana-0d6eaf005932b81962674471423b3e4fbb3e3131.tar.gz mana-0d6eaf005932b81962674471423b3e4fbb3e3131.tar.bz2 mana-0d6eaf005932b81962674471423b3e4fbb3e3131.tar.xz mana-0d6eaf005932b81962674471423b3e4fbb3e3131.zip |
- removed code passage with no effect
- killed packid uninitialized warning
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 9b1d6e4c..036b3b7a 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -50,7 +50,7 @@ void Chat::chat_dlgrsize(int) { /* * Adds a line of text to our message list. Parameters: - * + * * line: message text * own: type of message (usually the owner-type) * font: font that'll be used to draw the text later @@ -115,7 +115,7 @@ void Chat::chat_log(CHATSKILL action, ALFONT_FONT * font) { * BITMAP * bmp: Allegro type bitmap buffer to draw onto * int n: number of lines to be drawn * ALFONT_FONT * font: font to use - * + * * NOTE: * take great care using this, make sure the buffer passed is * empty! ;-) anyway, line wrapping is not supported yet. @@ -178,7 +178,7 @@ void Chat::chat_draw(BITMAP * bmp, int n, ALFONT_FONT * font) { * chatlog.chat_send("Zaeiru", "Hello to all users on the screen!"); */ char * Chat::chat_send(std::string nick, std::string msg) { - short packid; + short packid = 0x008c; // prepare command if(msg.substr(0,1)=="/") { @@ -186,9 +186,6 @@ char * Chat::chat_send(std::string nick, std::string msg) { if(msg.substr(0,IS_ANNOUNCE_LENGTH) == IS_ANNOUNCE) { msg.erase(0,IS_ANNOUNCE_LENGTH); packid = 0x0099; - } else if(msg.substr(0,IS_WHERE_LENGTH) == IS_WHERE) { - } else { - packid = 0x008c; } // prepare ordinary message } else { |