File tree 1 file changed +7
-7
lines changed
src/game/server/gamemodes
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,12 @@ void CGameControllerBomb::EndBombRound(bool RealEnd)
504
504
GameServer ()->SendChat (-1 , TEAM_ALL, " Noone won the round!" );
505
505
}
506
506
507
+ if (m_WasMysteryRound)
508
+ {
509
+ GameServer ()->Console ()->ExecuteFile (g_Config.m_SvMysteryRoundsResetFileName );
510
+ m_WasMysteryRound = false ;
511
+ }
512
+
507
513
std::vector<std::string> vTemp;
508
514
while (g_Config.m_BombtagMysteryChance && rand () % 101 <= g_Config.m_BombtagMysteryChance )
509
515
{
@@ -513,6 +519,7 @@ void CGameControllerBomb::EndBombRound(bool RealEnd)
513
519
}
514
520
if (!m_WasMysteryRound)
515
521
{
522
+ GameServer ()->Console ()->ExecuteFile (g_Config.m_SvMysteryRoundsResetFileName );
516
523
GameServer ()->SendChat (-1 , TEAM_ALL, " MYSTERY ROUND!" );
517
524
}
518
525
const char *pLine = GameServer ()->Server ()->GetMysteryRoundLine ();
@@ -522,18 +529,11 @@ void CGameControllerBomb::EndBombRound(bool RealEnd)
522
529
{
523
530
continue ;
524
531
}
525
-
526
- GameServer ()->Console ()->ExecuteFile (g_Config.m_SvMysteryRoundsResetFileName );
527
532
GameServer ()->Console ()->ExecuteLine (pLine);
528
533
m_WasMysteryRound = true ;
529
534
vTemp.emplace_back (pLine);
530
535
}
531
536
}
532
- if (m_WasMysteryRound)
533
- {
534
- GameServer ()->Console ()->ExecuteFile (g_Config.m_SvMysteryRoundsResetFileName );
535
- m_WasMysteryRound = false ;
536
- }
537
537
538
538
EndRound ();
539
539
DoWarmup (3 );
You can’t perform that action at this time.
0 commit comments