Skip to content

Commit

Permalink
Merge pull request #1110 from NikkiLacrima/NikkiLacrima-patch-2
Browse files Browse the repository at this point in the history
g_iAwayCounter clearing restrictions when nothing has changed
  • Loading branch information
SilkieSabra authored Oct 19, 2024
2 parents 517c4cc + 0eb01b7 commit 9d6467b
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 9d6467b

Please sign in to comment.