summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-26 00:04:45 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-04-26 00:04:45 +0000
commit8b0e30d3798cd5bdce2c3a34a3c384e90dceac99 (patch)
tree3fdca13a0cc138ed65b72de8cd3747cc79916818 /src/gui/chat.cpp
parenta31ba215a3043ebd62d415a7d855a531239fb630 (diff)
downloadmana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.gz
mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.bz2
mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.tar.xz
mana-8b0e30d3798cd5bdce2c3a34a3c384e90dceac99.zip
Changed keyboard control to integrate better with mouse walk, changed location
of packet.list and chatlog.txt and removed name from player chat "balloon".
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index b7051a3b..fac868c5 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -69,15 +69,15 @@ void ChatWindow::chat_log(std::string line, int own)
pos = 0;
pos = (int)line.find(" : ", 0);
if (pos > 0) {
- tmp.nick = line.substr(0,pos);
+ tmp.nick = line.substr(0, pos);
switch (own) {
- case ACT_IS :
+ case ACT_IS:
tmp.nick += CAT_IS;
break;
- case ACT_WHISPER :
+ case ACT_WHISPER:
tmp.nick += CAT_WHISPER;
break;
- default :
+ default:
tmp.nick += CAT_NORMAL;
}
line.erase(0, pos + 3);
@@ -85,7 +85,7 @@ void ChatWindow::chat_log(std::string line, int own)
tmp.nick = "";
}
tmp.own = own;
-
+
// A try to get text sentences no too long...
bool finished = false;
unsigned int maxLength = 80;
@@ -94,7 +94,7 @@ void ChatWindow::chat_log(std::string line, int own)
{
std::string tempText;
if (line.length() > maxLength)
- {
+ {
tempText = line;
if (line.length() > maxLength)
@@ -108,7 +108,7 @@ void ChatWindow::chat_log(std::string line, int own)
chatlog.push_front(tmp);
}
else // Normal message
- {
+ {
tmp.text = line;
//chatlog_file << tmp.nick << tmp.text << "\n";
//chatlog_file.flush();