From 1911e6e524633b255ab16f51e6937decbe7412c1 Mon Sep 17 00:00:00 2001 From: bob7hebuilder Date: Mon, 31 Aug 2015 20:56:07 +1000 Subject: [PATCH] Fixed logic in activate / deactivate pickup zone Changed logic in activate / deactivate pickup zone functions to something that **should** work, unlike before. STILL UNTESTED --- CTLD.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CTLD.lua b/CTLD.lua index 0a73cb3..73c94ed 100644 --- a/CTLD.lua +++ b/CTLD.lua @@ -4279,7 +4279,7 @@ function ctld.activatePickupZone(_zoneName) for _, _zoneDetails in pairs(ctld.pickupZones) do - if _triggerZone = trigger.misc.getZone(_zoneDetails[1]) then + if _zoneName == _zoneDetails[1] then --smoke could get messy if designer keeps calling this on an active zone, check its not active first if _zoneDetails[4] == 1 then @@ -4321,7 +4321,7 @@ function ctld.deactivatePickupZone(_zoneName) for _, _zoneDetails in pairs(ctld.pickupZones) do - if _triggerZone = trigger.misc.getZone(_zoneDetails[1]) then + if _zoneName == _zoneDetails[1] then if _zoneDetails[4] == 0 then --this really needed?? trigger.action.outText("CTLD.lua ERROR: Pickup Zone already deactiveated: " .. _zoneName, 10)