mail[Wesnoth-commits] r44402 - /trunk/src/generate_report.cpp


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

Header


Content

Posted by guillaume . melquiond on July 19, 2010 - 21:59:
Author: silene
Date: Mon Jul 19 21:59:39 2010
New Revision: 44402

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44402&view=rev
Log:
Hopefully fixed linking when the editor is disabled.

Modified:
    trunk/src/generate_report.cpp

Modified: trunk/src/generate_report.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/generate_report.cpp?rev=44402&r1=44401&r2=44402&view=diff
==============================================================================
--- trunk/src/generate_report.cpp (original)
+++ trunk/src/generate_report.cpp Mon Jul 19 21:59:39 2010
@@ -36,9 +36,11 @@
 #include <iostream>
 #include <ctime>
 
+#ifndef DISABLE_EDITOR
 namespace editor {
 extern std::string selected_terrain, left_button_function;
 }
+#endif
 
 namespace reports {
 
@@ -691,6 +693,11 @@
 
                return report("",game_config::observer_image,str.str());
        }
+#ifdef DISABLE_EDITOR
+       case EDITOR_SELECTED_TERRAIN:
+       case EDITOR_LEFT_BUTTON_FUNCTION:
+               return report();
+#else
        case EDITOR_SELECTED_TERRAIN: {
                if (editor::selected_terrain.empty())
                        return report();
@@ -703,6 +710,7 @@
                else
                        return report(editor::left_button_function);
        }
+#endif
        case REPORT_COUNTDOWN: {
                int min;
                int sec;




Related Messages


Powered by MHonArc, Updated Mon Jul 19 22:40:15 2010