about summary refs log tree commit diff
path: root/src/game/server/gamemodes/tdm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/gamemodes/tdm.cpp')
-rw-r--r--src/game/server/gamemodes/tdm.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/tdm.cpp b/src/game/server/gamemodes/tdm.cpp
index ef5302c6..fb0ff783 100644
--- a/src/game/server/gamemodes/tdm.cpp
+++ b/src/game/server/gamemodes/tdm.cpp
@@ -1,5 +1,7 @@
 /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
 /* If you are missing that file, acquire a complete release at teeworlds.com.                */
+#include <engine/shared/config.h>
+
 #include <game/server/entities/character.h>
 #include <game/server/player.h>
 #include "tdm.h"
@@ -23,6 +25,8 @@ int CGameControllerTDM::OnCharacterDeath(class CCharacter *pVictim, class CPlaye
 		else
 			m_aTeamscore[pKiller->GetTeam()&1]++; // good shit
 	}
+
+	pVictim->GetPlayer()->m_RespawnTick = max(pVictim->GetPlayer()->m_RespawnTick, Server()->Tick()+Server()->TickSpeed()*g_Config.m_SvRespawnDelayTDM);
 		
 	return 0;
 }