From 00579432d7695842ec2fbca680735ea7ca5f4824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Lo=20Giudice?= Date: Thu, 1 Dec 2016 17:23:09 -0300 Subject: [PATCH] Fix JoinTeam from UNA to T/CT (#76) Related to https://github.com/s1lentq/ReGameDLL_CS/issues/75 --- regamedll/regamedll/regamedll_interfaces_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/regamedll/regamedll_interfaces_impl.cpp b/regamedll/regamedll/regamedll_interfaces_impl.cpp index f0d92455..85f4325c 100644 --- a/regamedll/regamedll/regamedll_interfaces_impl.cpp +++ b/regamedll/regamedll/regamedll_interfaces_impl.cpp @@ -73,7 +73,7 @@ bool EXT_FUNC CCSPlayer::JoinTeam(TeamName team) case CT: case TERRORIST: { - if (pPlayer->m_iTeam == SPECTATOR) + if (pPlayer->m_iTeam == SPECTATOR || pPlayer->m_iTeam == UNASSIGNED) { // If they're switching into spectator, setup spectator properties.. pPlayer->m_bNotKilled = true;