mail[Wesnoth-commits] r43254 - in /trunk/src/whiteboard: manager.cpp move.cpp


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

Header


Content

Posted by gabrielmorin on June 10, 2010 - 04:58:
Author: gabba
Date: Thu Jun 10 04:58:42 2010
New Revision: 43254

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43254&view=rev
Log:
Whiteboard: debug statements

Modified:
    trunk/src/whiteboard/manager.cpp
    trunk/src/whiteboard/move.cpp

Modified: trunk/src/whiteboard/manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/manager.cpp?rev=43254&r1=43253&r2=43254&view=diff
==============================================================================
--- trunk/src/whiteboard/manager.cpp (original)
+++ trunk/src/whiteboard/manager.cpp Thu Jun 10 04:58:42 2010
@@ -67,7 +67,8 @@
 void manager::create_move_from_route(unit& subject)
 {
        team& current_team = 
(*resources::teams)[resources::controller->current_side()];
-       DBG_WB << "Creating move for unit " << subject.name() << " from " << 
subject.get_location()
+       LOG_WB << "Creating move for unit " << subject.name() << " [" << 
subject.id() << "]"
+                       << " from " << subject.get_location()
                        << " to " << route_.back() << "\n";
        current_team.get_side_actions().queue_move(subject, route_.back(), 
*move_arrow_);
        //ownership of the arrow transferred to the new move action

Modified: trunk/src/whiteboard/move.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/move.cpp?rev=43254&r1=43253&r2=43254&view=diff
==============================================================================
--- trunk/src/whiteboard/move.cpp (original)
+++ trunk/src/whiteboard/move.cpp Thu Jun 10 04:58:42 2010
@@ -43,7 +43,7 @@
 modifier_ptr move::apply_temp_modifier(unit_map& unit_map)
 {
        assert(unit_.get_location() == orig_hex_);
-       DBG_WB << "Adding temp unit mover for unit " << unit_.name() << " [" 
<< unit_.underlying_id() << "] "
+       LOG_WB << "Adding temp unit mover for unit " << unit_.name() << " [" 
<< unit_.underlying_id() << "] "
                        << " from (" << orig_hex_ << ") to (" << dest_hex_ 
<<")\n";
        modifier_ptr modifier(new temporary_unit_mover(unit_map, orig_hex_, 
dest_hex_));
        return modifier;




Related Messages


Powered by MHonArc, Updated Thu Jun 10 05:00:28 2010