Skip to content

Commit

Permalink
Fixes from Pongo1321
Browse files Browse the repository at this point in the history
  • Loading branch information
APGRoboCop committed Sep 8, 2018
1 parent ac9a889 commit 0406eda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/RCBot2_meta/bot_fortress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2896,7 +2896,7 @@ void CBotTF2::modThink()

extern ConVar *mp_stalemate_meleeonly;

if (!mp_stalemate_meleeonly || !mp_stalemate_meleeonly->GetBool() || !CTeamFortress2Mod::isSuddenDeath())
if ((!mp_stalemate_meleeonly || !mp_stalemate_meleeonly->GetBool()) && !CTeamFortress2Mod::isSuddenDeath() && !CTeamFortress2Mod::isMedievalMode())
{
// only add primary / secondary weapons if they are given them by the map
/*if (RCBotPluginMeta::TF2_getPlayerWeaponSlot(m_pEdict, TF2_SLOT_PRMRY) &&
Expand Down Expand Up @@ -3078,7 +3078,7 @@ void CBotTF2::modThink()
m_fChangeClassTime = engine->Time() + randomFloat(bot_min_cc_time.GetFloat() / 2, bot_max_cc_time.GetFloat() / 2);
}

const int _forcedClass = rcbot_force_class.GetInt();
//const int _forcedClass = rcbot_force_class.GetInt();
// Change class if either I think I could do better
if (randomFloat(0.0f, 1.0f) > (scoreValue / CTeamFortress2Mod::getHighestScore()))
{
Expand Down

0 comments on commit 0406eda

Please sign in to comment.