From 0eb01b75d3d1cfaaee9359f94aaa74f1057fa44b Mon Sep 17 00:00:00 2001 From: NikkiLacrima <111503035+NikkiLacrima@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:27:44 +0200 Subject: [PATCH] Update oc_leash.lsl - g_iAwayCounter clearing restrictions when nothing has changed When leasher is away, realleash keeps spamming the collar with messages every 10 seconds when nothing has changed. Change should not be noticalbe to wearer, just test that leasher detection works correctly. --- src/collar/oc_leash.lsl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/collar/oc_leash.lsl b/src/collar/oc_leash.lsl index b4b7995a1..3e4fd6004 100644 --- a/src/collar/oc_leash.lsl +++ b/src/collar/oc_leash.lsl @@ -20,14 +20,15 @@ Medea (medea.destiny) is extended from 15 to 60 seconds to give leash holder time after a teleport to send leashee a tp lure. Nikki Larima - Nov 2023 - Remove processing of "runaway" command string, handled by CMD_SATEWORD + Nov 2023 - Remove processing of "runaway" command string, handled by CMD_SAFEWORD implemented Yosty7b3's menu streamlining, see pr#963 + Oct 2024 - Stop g_iAwayCounter from clearing restrictions when nothing has changed Licensed under the GPLv2. See LICENSE for full details. https://github.com/OpenCollarTeam/OpenCollar */ -string g_sScriptVersion = "8.3"; +string g_sScriptVersion = "8.4"; integer LINK_CMD_DEBUG=1999; // ------ TOKEN DEFINITIONS ------ @@ -770,7 +771,7 @@ state active } else { - if (g_iAwayCounter <= llGetUnixTime()) + if (g_iAwayCounter>0 && g_iAwayCounter <= llGetUnixTime()) { //indicate out of range, clear realleash restrictions, reset awaycounter