mail[Wesnoth-commits] r28853 - /trunk/src/campaign_server/campaign_server.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 22, 2008 - 21:51:
Author: suokko
Date: Fri Aug 22 21:14:40 2008
New Revision: 28853

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28853&view=rev
Log:
Fixed campaign to use correct compression level and encoding messages

Modified:
    trunk/src/campaign_server/campaign_server.cpp

Modified: trunk/src/campaign_server/campaign_server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/campaign_server/campaign_server.cpp?rev=28853&r1=28852&r2=28853&view=diff
==============================================================================
--- trunk/src/campaign_server/campaign_server.cpp (original)
+++ trunk/src/campaign_server/campaign_server.cpp Fri Aug 22 21:14:40 2008
@@ -154,7 +154,7 @@
                server_manager_(load_config()),
                hooks_(),
                input_(0),
-               compress_level_(0)
+               compress_level_(compress_level_) // Already set by 
load_config()
        {
                if(cfg_.child("campaigns") == NULL) {
                        cfg_.add_child("campaigns");
@@ -296,7 +296,7 @@
                {
                        // Convert all addons to gzip
                        config::child_list camps = 
campaigns().get_children("campaign");
-                       LOG_CS << "Encoding CR in all stored campaigns. 
Number of addons: " << camps.size() <<"\n";
+                       LOG_CS << "Encoding all stored campaigns. Number of 
addons: " << camps.size() <<"\n";
  
                        for (config::child_list::iterator itor = 
camps.begin();
                                        itor != camps.end(); ++itor)
@@ -316,7 +316,7 @@
                                        unsigned char c = in_filter.get();
                                        while( in_filter.good())
                                        {
-                                               if (needs_escaping(c) && c == 
'\x01')
+                                               if (needs_escaping(c) && c != 
'\x01')
                                                {
                                                        
out_filter.put('\x01');
                                                        out_filter.put(c+1);
@@ -332,7 +332,7 @@
                                }
                        }
                        
-                       cfg_["cr_encoded"] = "yes";
+                       cfg_["encoded"] = "yes";
                }
        }
 




Related Messages


Powered by MHonArc, Updated Fri Aug 22 22:01:36 2008