From add2452b141b4e1346ecabfe7ef87bbb610580ea Mon Sep 17 00:00:00 2001 From: Bob Blackmon Date: Mon, 3 Apr 2017 11:21:56 -0400 Subject: Fixed multiple popups --- lua/weapons/weapon_zone_designator.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/weapons/weapon_zone_designator.lua') diff --git a/lua/weapons/weapon_zone_designator.lua b/lua/weapons/weapon_zone_designator.lua index fd2c0c5..9965e4c 100644 --- a/lua/weapons/weapon_zone_designator.lua +++ b/lua/weapons/weapon_zone_designator.lua @@ -166,6 +166,7 @@ function SWEP:PrimaryAttack() elseif CLIENT then local tr = self.Owner:GetEyeTrace() if !tr.HitWorld and IsValid(tr.Entity) and tr.Entity:GetClass() == "ent_zone_point" then + if IsValid(zones.optionsFrame) then return end zones.ShowOptions(tr.Entity:GetZoneID()) end -- cgit v1.2.3-70-g09d2