[Wesnoth-commits] r10052 - /trunk/src/upload_log.cpp (February 11, 2006 - 05:37)

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

 

Author: rusty
Date: Sat Feb 11 05:37:00 2006
New Revision: 10052

URL: http://svn.gna.org/viewcvs/wesnoth?rev=10052&view=rev
Log:
Don't log debug games for upload.
Fixes bug #5227 https://gna.org/bugs/?func=detailitem&item_id=5227

Modified:
    trunk/src/upload_log.cpp

Modified: trunk/src/upload_log.cpp
URL: http://svn.gna.org/viewcvs/wesnoth/trunk/src/upload_log.cpp?rev=10052&r1=10051&r2=10052&view=diff
==============================================================================
--- trunk/src/upload_log.cpp (original)
+++ trunk/src/upload_log.cpp Sat Feb 11 05:37:00 2006
@@ -14,6 +14,7 @@
 
 #define GETTEXT_DOMAIN "wesnoth"
 
+#include "game_config.hpp"
 #include "gettext.hpp"
 #include "filesystem.hpp"
 #include "preferences.hpp"
@@ -128,7 +129,7 @@
 	if (game_finished(game_))
 		config_.add_child("game", *game_);
 
-	if (enabled_ && !config_.empty()) {
+	if (enabled_ && !config_.empty() && !game_config::debug) {
 		config_["version"] = VERSION;
 		config_["format_version"] = "1";
 		config_["id"] = preferences::upload_id();



Related Mails




Powered by MHonArc, Updated Sat Feb 11 11:40:19 2006