Skip to content

Commit

Permalink
don't draw zones around hooked buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Jul 5, 2022
1 parent 0f7360f commit 27ec578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/shavit-zones.sp
Original file line number Diff line number Diff line change
Expand Up @@ -4488,7 +4488,7 @@ public Action Timer_DrawZones(Handle Timer, any drawAll)

if (drawAll || gA_ZoneSettings[type][track].bVisible || (gA_ZoneCache[i].iFlags & ZF_ForceRender) > 0)
{
if (form == ZoneForm_trigger_teleport && !(drawAll || (gA_ZoneCache[i].iFlags & ZF_ForceRender) > 0))
if ((form == ZoneForm_trigger_teleport || form == ZoneForm_func_button) && !(drawAll || (gA_ZoneCache[i].iFlags & ZF_ForceRender) > 0))
{
continue;
}
Expand Down

0 comments on commit 27ec578

Please sign in to comment.