Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
naderzare committed Dec 9, 2024
1 parent 0bda347 commit f30c89f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/grpc-client/grpc_client_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,9 +899,16 @@ void GrpcClientPlayer::getActions()
rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Neck_ScanPlayers failed" );
}
}
else if (action.action_case() == PlayerAction::kBhvGoalieFreeKick) {
Bhv_GoalieFreeKick().execute(agent);
agent->debugClient().addMessage("Bhv_GoalieFreeKick");
else if (action.action_case() == PlayerAction::kBhvGoalieFreeKick && !action_performed) {
if (Bhv_GoalieFreeKick().execute(agent))
{
action_performed = true;
rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Bhv_GoalieFreeKick performed" );
}
else
{
rcsc::dlog.addText( rcsc::Logger::TEAM, __FILE__": Bhv_GoalieFreeKick failed" );
}
}
else if (action.action_case() == PlayerAction::kNeckTurnToBallAndPlayer) {
const auto &neckTurnToBallAndPlayer = action.neck_turn_to_ball_and_player();
Expand Down

0 comments on commit f30c89f

Please sign in to comment.