diff --git a/inc/engine.h b/inc/engine.h index ce7bcc8..6c84425 100644 --- a/inc/engine.h +++ b/inc/engine.h @@ -54,7 +54,7 @@ CR_DECLARE_SCOPED_ENUM (MapFlags, Demolition = cr::bit (2), Escape = cr::bit (3), KnifeArena = cr::bit (4), - Fun = cr::bit (5), + FightYard = cr::bit (5), HasDoors = cr::bit (10), // additional flags HasButtons = cr::bit (11) // map has buttons ) diff --git a/src/botlib.cpp b/src/botlib.cpp index 411c300..2b275b9 100644 --- a/src/botlib.cpp +++ b/src/botlib.cpp @@ -1108,7 +1108,7 @@ void Bot::checkMsgQueue () { } // prevent teams from buying on fun maps - if (game.mapIs (MapFlags::KnifeArena | MapFlags::Fun)) { + if (game.mapIs (MapFlags::KnifeArena)) { m_buyState = BuyState::Done; if (game.mapIs (MapFlags::KnifeArena)) { diff --git a/src/engine.cpp b/src/engine.cpp index 175d447..5a9ceaf 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -153,7 +153,7 @@ void Game::levelInitialize (edict_t *entities, int max) { // next maps doesn't have map-specific entities, so determine it by name if (strncmp (getMapName (), "fy_", 3) == 0) { - m_mapFlags |= MapFlags::Fun; + m_mapFlags |= MapFlags::FightYard; } else if (strncmp (getMapName (), "ka_", 3) == 0) { m_mapFlags |= MapFlags::KnifeArena; diff --git a/src/manager.cpp b/src/manager.cpp index d1446a1..89e02eb 100644 --- a/src/manager.cpp +++ b/src/manager.cpp @@ -1785,7 +1785,7 @@ void BotManager::selectLeaders (int team, bool reset) { m_leaderChoosen[Team::CT] = true; } } - else if (game.mapIs (MapFlags::Escape | MapFlags::KnifeArena | MapFlags::Fun)) { + else if (game.mapIs (MapFlags::Escape | MapFlags::KnifeArena | MapFlags::FightYard)) { auto bot = bots.findHighestFragBot (team); if (!m_leaderChoosen[team] && bot) {