Skip to content

Commit 3a63e1c

Browse files
committed
Support OnReset
1 parent b7ace62 commit 3a63e1c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/game/server/gamemodes/Bomb.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ void CGameControllerBomb::OnReset()
9393
{
9494
IGameController::OnReset();
9595
m_Teams.Reset();
96+
97+
// Bombtag reset
98+
for(auto &aPlayer : m_aPlayers)
99+
{
100+
if(aPlayer.m_State == STATE_ALIVE)
101+
{
102+
aPlayer.m_State = STATE_ACTIVE;
103+
aPlayer.m_Bomb = false;
104+
}
105+
m_RoundActive = false;
106+
}
96107
}
97108

98109
void CGameControllerBomb::Tick()

0 commit comments

Comments
 (0)