fix: #if changed to #ifdef for DEBUG_ENABLED check
This commit is contained in:
parent
0e8bcf4442
commit
40a93aec32
|
@ -192,12 +192,12 @@ bool Planner::does_action_contribute(Action const *action, WorldStateNode const
|
||||||
Plan Planner::unroll_plan(WorldStateNode const &start_node, NodeMap const &from) {
|
Plan Planner::unroll_plan(WorldStateNode const &start_node, NodeMap const &from) {
|
||||||
Plan plan{};
|
Plan plan{};
|
||||||
WorldStateNode node{start_node};
|
WorldStateNode node{start_node};
|
||||||
#if DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
gd::UtilityFunctions::print("plan (", this->get_path(), "):");
|
gd::UtilityFunctions::print("plan (", this->get_path(), "):");
|
||||||
#endif
|
#endif
|
||||||
while(node.last_action != nullptr) {
|
while(node.last_action != nullptr) {
|
||||||
plan.push_back(node.last_action);
|
plan.push_back(node.last_action);
|
||||||
#if DEBUG_ENABLED
|
#ifdef DEBUG_ENABLED
|
||||||
gd::UtilityFunctions::print(" (", plan.size(), ") ", node.last_action->get_class());
|
gd::UtilityFunctions::print(" (", plan.size(), ") ", node.last_action->get_class());
|
||||||
#endif
|
#endif
|
||||||
node = from.get(node);
|
node = from.get(node);
|
||||||
|
|
Loading…
Reference in a new issue