diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-05-02 11:23:05 +0000 |
commit | b8dbdb628ba7a07a785e494d0ed76ebfe9e06615 (patch) | |
tree | 173d22e656ac771e473cdb7c1d035963d39c27e1 /src/gui/chat.cpp | |
parent | b05628214d64e579504c87da72e79c024245a631 (diff) | |
download | mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.gz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.bz2 mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.tar.xz mana-b8dbdb628ba7a07a785e494d0ed76ebfe9e06615.zip |
Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 40a44b13..cc625358 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -29,12 +29,12 @@ #include "../main.h" #include <iostream> -ChatWindow::ChatWindow(const char *logfile, int item_num): +ChatWindow::ChatWindow(const std::string &logfile): Window("") { - chatlog_file.open(logfile, std::ios::out | std::ios::app); + chatlog_file.open(logfile.c_str(), std::ios::out | std::ios::app); items = 0; - items_keep = item_num; + items_keep = 20; setContentSize(600, 100); textOutput = new TextBox(); |