Skip to content

Commit

Permalink
Fix spawning with grenade
Browse files Browse the repository at this point in the history
  • Loading branch information
M0REKZ committed Mar 12, 2024
1 parent 76ecf95 commit 5488fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/server/instagib/gamelogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 5488fff

Please sign in to comment.