Author: suokko
Date: Sun Sep 14 01:45:26 2008
New Revision: 29450

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29450&view=rev
Log:
Moved debug messages to debug engine instead of std:cerr

Modified:
    trunk/src/unit_id.cpp

Modified: trunk/src/unit_id.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_id.cpp?rev=29450&r1=29449&r2=29450&view=diff
==============================================================================
--- trunk/src/unit_id.cpp (original)
+++ trunk/src/unit_id.cpp Sun Sep 14 01:45:26 2008
@@ -15,6 +15,8 @@
 #include "log.hpp"
 #include "unit_id.hpp"
 
+#define DBG_UT LOG_STREAM(debug, engine)
+
 namespace n_unit {
        id_manager id_manager::manager_;
 
@@ -28,7 +30,7 @@
 
        size_t id_manager::next_id()
        {
-               std::cerr << "id: " << next_id_ << "\n";
+               DBG_UT << "id: " << next_id_ << "\n";
                return ++next_id_;
        }
 
@@ -39,7 +41,7 @@
 
        void id_manager::set_save_id(size_t id)
        {
-               std::cerr << "set save id: " << id << "\n";
+               DBG_UT << "set save id: " << id << "\n";
                next_id_ = id;
        }
 


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

Reply via email to