From 4a2c4ccece4c6ed5d4043a41edd9e9bae6b7d32f Mon Sep 17 00:00:00 2001 From: icedream Date: Fri, 24 Apr 2015 21:50:04 +0200 Subject: [PATCH] Fix if block for compatibility code. --- lua/autorun/server/prophunt_tauntmenu.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/autorun/server/prophunt_tauntmenu.lua b/lua/autorun/server/prophunt_tauntmenu.lua index 874ccbe..e696043 100644 --- a/lua/autorun/server/prophunt_tauntmenu.lua +++ b/lua/autorun/server/prophunt_tauntmenu.lua @@ -185,12 +185,11 @@ hook.Add("Think", "TauntList_DetectUpdate", function() BroadcastUpdate() end - end -- Tauntpack loader replaces the old table with a new instance whenever it reloads the taunts. -- This means we can use reference equality to detect changes quickly here. -- For reference see sv_ph_tauntpack_loader.lua:55-56 - if (tauntsTable[TEAM_HUNTERS] ~= GAMEMODE.Hunter_Taunts) + else if (tauntsTable[TEAM_HUNTERS] ~= GAMEMODE.Hunter_Taunts) or (tauntsTable[TEAM_PROPS] ~= GAMEMODE.Prop_Taunts) then tauntsTable= {}