Skip to content

Commit

Permalink
Update oc_leash.lsl - g_iAwayCounter clearing restrictions when nothi…
Browse files Browse the repository at this point in the history
…ng 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.
  • Loading branch information
NikkiLacrima authored Oct 10, 2024
1 parent cd3e66f commit 0eb01b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/collar/oc_leash.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0eb01b7

Please sign in to comment.