s1lentq/ReGameDLL_CS

bots don't check `mp_roundrespawn_time` -1 value in `cs_bot_manager.cpp`

wopox1337 opened this issue · 1 comments

  1. if (CSGameRules()->GetRoundElapsedTime() < CSGameRules()->GetRoundRespawnTime()) // new bots can still spawn during this time

  2. bool isRoundInProgress = CSGameRules()->IsGameStarted() &&
    !TheCSBots()->IsRoundOver() &&
    (CSGameRules()->GetRoundElapsedTime() >= CSGameRules()->GetRoundRespawnTime());

need to add smth like this:

// means no time limit
if (GetRoundRespawnTime() != -1)

p.s: temp solution mp_roundrespawn_time 99999 fixes problem

Когда исправишь ленивый?