mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
removed duplicate code. closes #2005
This commit is contained in:
parent
57a73039c3
commit
e5f2c4f91d
|
@ -13,20 +13,6 @@ CGameControllerLMS::CGameControllerLMS(CGameContext *pGameServer) : IGameControl
|
|||
m_GameFlags = GAMEFLAG_SURVIVAL;
|
||||
}
|
||||
|
||||
// event
|
||||
int CGameControllerLMS::OnCharacterDeath(CCharacter *pVictim, CPlayer *pKiller, int Weapon)
|
||||
{
|
||||
// update spectator modes for dead players in survival
|
||||
if(m_GameFlags&GAMEFLAG_SURVIVAL)
|
||||
{
|
||||
for(int i = 0; i < MAX_CLIENTS; ++i)
|
||||
if(GameServer()->m_apPlayers[i] && GameServer()->m_apPlayers[i]->m_DeadSpecMode)
|
||||
GameServer()->m_apPlayers[i]->UpdateDeadSpecMode();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
// game
|
||||
void CGameControllerLMS::DoWincheckRound()
|
||||
{
|
||||
|
|
|
@ -9,9 +9,6 @@ class CGameControllerLMS : public IGameController
|
|||
public:
|
||||
CGameControllerLMS(class CGameContext *pGameServer);
|
||||
|
||||
// event
|
||||
virtual int OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int Weapon);
|
||||
|
||||
// game
|
||||
virtual void DoWincheckRound();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue