From e5f2c4f91da3b81a4c1596e541f559cab5afafa5 Mon Sep 17 00:00:00 2001 From: oy Date: Sun, 3 Feb 2019 17:30:29 +0100 Subject: [PATCH] removed duplicate code. closes #2005 --- src/game/server/gamemodes/lms.cpp | 14 -------------- src/game/server/gamemodes/lms.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/src/game/server/gamemodes/lms.cpp b/src/game/server/gamemodes/lms.cpp index d81d77ed1..39179b46c 100644 --- a/src/game/server/gamemodes/lms.cpp +++ b/src/game/server/gamemodes/lms.cpp @@ -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() { diff --git a/src/game/server/gamemodes/lms.h b/src/game/server/gamemodes/lms.h index a4e8e7149..d5f83586a 100644 --- a/src/game/server/gamemodes/lms.h +++ b/src/game/server/gamemodes/lms.h @@ -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(); };