Author: soliton
Date: Fri Apr  3 09:48:18 2009
New Revision: 34428

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

Modified:
    trunk/src/multiplayer_ui.cpp

Modified: trunk/src/multiplayer_ui.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/multiplayer_ui.cpp?rev=34428&r1=34427&r2=34428&view=diff
==============================================================================
--- trunk/src/multiplayer_ui.cpp (original)
+++ trunk/src/multiplayer_ui.cpp Fri Apr  3 09:48:18 2009
@@ -32,6 +32,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 {
 
@@ -203,7 +205,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