From 5488fff16b2c7dff6763ba7ce30a67b5bd4cf84c Mon Sep 17 00:00:00 2001 From: +KZ Date: Tue, 12 Mar 2024 19:08:12 -0300 Subject: [PATCH] Fix spawning with grenade --- src/game/server/instagib/gamelogic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/instagib/gamelogic.cpp b/src/game/server/instagib/gamelogic.cpp index ec4f444177a..41d76fd9802 100644 --- a/src/game/server/instagib/gamelogic.cpp +++ b/src/game/server/instagib/gamelogic.cpp @@ -300,9 +300,9 @@ void CGameContext::InstagibUnstackChatMessage(char *pUnstacked, const char *pMes int CGameContext::GetDDNetInstaWeapon() { - if(str_comp_nocase(g_Config.m_SvGametype, "gctf") == 0) + if(str_comp_nocase(g_Config.m_SvGametype, "ictf") == 0 || str_comp_nocase(g_Config.m_SvGametype, "gdm") == 0 || str_comp_nocase(g_Config.m_SvGametype, "gtdm") == 0) return WEAPON_GRENADE; - if(str_comp_nocase(g_Config.m_SvGametype, "ictf") == 0) + if(str_comp_nocase(g_Config.m_SvGametype, "ictf") == 0 || str_comp_nocase(g_Config.m_SvGametype, "idm") == 0 || str_comp_nocase(g_Config.m_SvGametype, "itdm") == 0) return WEAPON_LASER; return WEAPON_GRENADE; }