Author: soliton
Date: Fri Apr  3 09:47:55 2009
New Revision: 34427

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34427&view=rev
Log:
patch #1153: fix for bug #13302 - truncate chatlog to 256 messages instead of 
1024 from cornmander (Gregory Shikhman)

Modified:
    branches/1.6/src/multiplayer_ui.cpp

Modified: branches/1.6/src/multiplayer_ui.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/src/multiplayer_ui.cpp?rev=34427&r1=34426&r2=34427&view=diff
==============================================================================
--- branches/1.6/src/multiplayer_ui.cpp (original)
+++ branches/1.6/src/multiplayer_ui.cpp Fri Apr  3 09:47:55 2009
@@ -31,6 +31,8 @@
 #define DBG_NW LOG_STREAM(debug, network)
 #define LOG_NW LOG_STREAM(info, network)
 #define ERR_NW LOG_STREAM(err, network)
+
+#define MAX_MESSAGES 256
 
 namespace {
 
@@ -200,7 +202,7 @@
 {
        message_history_.push_back(msg(time, user, message));
 
-       while (message_history_.size() > 1024) {
+       while (message_history_.size() > MAX_MESSAGES) {
                message_history_.pop_front();
 
                if (last_update_ > 0)


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to