@@ -233,10 +233,10 @@ void activity_demo() {
233233
234234 // Conditional branch
235235 static size_t counter = 0 ;
236- activity::condition_t branch_task1 = [&](const time::time_t & /* time */ ,
237- const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
238- const std::shared_ptr<gamestate::GameState> & /* state */ ,
239- const std::shared_ptr<nyan::Object> & /* api_object */ ) {
236+ activity::condition_function_t branch_task1 = [&](const time::time_t & /* time */ ,
237+ const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
238+ const std::shared_ptr<gamestate::GameState> & /* state */ ,
239+ const std::shared_ptr<nyan::Object> & /* api_object */ ) {
240240 log::log (INFO << " Checking condition (counter < 4): counter=" << counter);
241241 if (counter < 4 ) {
242242 log::log (INFO << " Selecting path 1 (back to task node " << task1->get_id () << " )" );
@@ -249,10 +249,10 @@ void activity_demo() {
249249 xor_node->add_output (task1,
250250 {nullptr , // API object set to nullptr as it's never used by condition func
251251 branch_task1});
252- activity::condition_t branch_event = [&](const time::time_t & /* time */ ,
253- const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
254- const std::shared_ptr<gamestate::GameState> & /* state */ ,
255- const std::shared_ptr<nyan::Object> & /* api_object */ ) {
252+ activity::condition_function_t branch_event = [&](const time::time_t & /* time */ ,
253+ const std::shared_ptr<gamestate::GameEntity> & /* entity */ ,
254+ const std::shared_ptr<gamestate::GameState> & /* state */ ,
255+ const std::shared_ptr<nyan::Object> & /* api_object */ ) {
256256 // No check needed here, the event node is always selected
257257 log::log (INFO << " Selecting path 2 (to event node " << event_node->get_id () << " )" );
258258 return true ;
0 commit comments