Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Jun 14, 2024
1 parent db24b3b commit 0622366
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CTF2BotEngineerBuildObjectTask::CTF2BotEngineerBuildObjectTask(eObjectType type,
m_type = type;
m_goal = location;
m_reachedGoal = false;
m_trydir = 0;
m_trydir = randomgen->GetRandomInt<int>(0, 3); // randomize initial value

switch (type)
{
Expand Down
2 changes: 1 addition & 1 deletion extension/bot/tf2/tasks/engineer/tf2bot_engineer_nest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ bool CTF2BotEngineerNestTask::FindSpotToBuildTeleEntrance(CTF2Bot* me, Vector& o
}
else
{
buildGoal = hintAreas[randomgen->GetRandomInt<size_t>(0, areas.size() - 1)];
buildGoal = hintAreas[randomgen->GetRandomInt<size_t>(0, hintAreas.size() - 1)];
}

out = buildGoal->GetCenter();
Expand Down
2 changes: 1 addition & 1 deletion extension/bot/tf2/tasks/scenario/mvm/tf2bot_mvm_idle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TaskResult<CTF2Bot> CTF2BotMvMIdleTask::OnTaskUpdate(CTF2Bot* bot)
return PauseFor(new CTF2BotMvMUpgradeTask, "Going to use an upgrade station!");
}

if (!bot->GetBehaviorInterface()->IsReady(bot) == ANSWER_YES)
if (bot->GetBehaviorInterface()->IsReady(bot) == ANSWER_YES)
{
if (!bot->TournamentIsReady() && tf2lib::MVM_ShouldBotsReadyUp())
{
Expand Down

0 comments on commit 0622366

Please sign in to comment.