Author: tschmitz
Date: Sun Jul 24 23:40:08 2011
New Revision: 50395
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50395&view=rev
Log:
Modified whiteboard logging.
Modified:
trunk/src/whiteboard/attack.cpp
trunk/src/whiteboard/manager.cpp
Modified: trunk/src/whiteboard/attack.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/attack.cpp?rev=50395&r1=50394&r2=50395&view=diff
==============================================================================
--- trunk/src/whiteboard/attack.cpp (original)
+++ trunk/src/whiteboard/attack.cpp Sun Jul 24 23:40:08 2011
@@ -142,7 +142,7 @@
move::apply_temp_modifier(unit_map);
assert(get_unit());
unit& unit = *get_unit();
- LOG_WB << unit.name() << " [" << unit.id()
+ DBG_WB << unit.name() << " [" << unit.id()
<< "] has " << unit.attacks_left() << "
attacks, decreasing by one" << "\n";
assert(unit.attacks_left() > 0);
unit.set_attacks(unit.attacks_left() - 1);
@@ -159,7 +159,7 @@
{
assert(get_unit());
unit& unit = *get_unit();
- LOG_WB << unit.name() << " [" << unit.id()
+ DBG_WB << unit.name() << " [" << unit.id()
<< "] has " << unit.attacks_left() << "
attacks, increasing by one" << "\n";
unit.set_attacks(unit.attacks_left() + 1);
DBG_WB << "Attack: Changing movement points for unit " << unit.name()
<< " [" << unit.id()
Modified: trunk/src/whiteboard/manager.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/manager.cpp?rev=50395&r1=50394&r2=50395&view=diff
==============================================================================
--- trunk/src/whiteboard/manager.cpp (original)
+++ trunk/src/whiteboard/manager.cpp Sun Jul 24 23:40:08 2011
@@ -274,7 +274,7 @@
}
else if (executing_actions_)
{
- LOG_WB << "Attempt to set planned_unit_map during action
execution.\n";
+ DBG_WB << "Attempt to set planned_unit_map during action
execution.\n";
}
}
@@ -298,7 +298,7 @@
}
else //executing_actions_
{
- LOG_WB << "Attempt to set planned_unit_map during action
execution.\n";
+ DBG_WB << "Attempt to set planned_unit_map during action
execution.\n";
}
}
@@ -419,12 +419,18 @@
net_buffer_ = config();
network::send_data(packet,0,"whiteboard");
+
+ size_t count = wb_cfg.child_count("net_cmd");
+ LOG_WB << "Sent wb data (" << count << ").\n";
}
void manager::process_network_data(config const& cfg)
{
if(config const& wb_cfg = cfg.child("whiteboard"))
{
+ size_t count = wb_cfg.child_count("net_cmd");
+ LOG_WB << "Received wb data (" << count << ").\n";
+
team& team_from = resources::teams->at(wb_cfg["side"]-1);
foreach(side_actions::net_cmd const& cmd,
wb_cfg.child_range("net_cmd"))
team_from.get_side_actions()->execute_net_cmd(cmd);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits