From 356355da845737f30686828cd1ef1636625d59fd Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 14 Dec 2017 11:50:16 +0100 Subject: [PATCH] Follow-up fix for 137c31b At some points, the initials of "Dominant" and "Submissive" were used to identify the role. That needed to be fixed. --- AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl b/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl index 229b87c..0a59d0b 100644 --- a/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl +++ b/AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl @@ -436,22 +436,26 @@ find_seat(key id, integer index, string msg, integer captureSub) { if (index != -1) { + if (msg == Dominant_name) + msg = "D"; + else + msg = "S"; integer first_available = index; if (llListFindList(DESIGNATIONS_NOW, [id]) != -1) { first_available = llListFindList(DESIGNATIONS_NOW, [id]); } - else if (llList2String(DESIGNATIONS_NOW, index) != llGetSubString(msg, 0, 0)) + else if (llList2String(DESIGNATIONS_NOW, index) != msg) { - first_available = llListFindList(DESIGNATIONS_NOW, [llGetSubString(msg, 0, 0)]); + first_available = llListFindList(DESIGNATIONS_NOW, [msg]); } if (first_available != -1) { - if (msg == Dominant_name) + if (msg == "D") { playpose(DOMPOSE, (string)first_available); } - else if (msg == Submissive_name) + else if (msg == "S") { if (captureSub) { @@ -482,7 +486,7 @@ find_seat(key id, integer index, string msg, integer captureSub) } hovertext(); llMessageLinked(LINK_THIS, 90206, llDumpList2String(DESIGNATIONS_NOW, "|"), ""); - if (msg == Dominant_name) + if (msg == "D") { llSleep(1); llMessageLinked(LINK_THIS, 90007, "", id); @@ -491,6 +495,10 @@ find_seat(key id, integer index, string msg, integer captureSub) else { llUnSit(id); + if (msg == "D") + msg = Dominant_name; + else + msg = Submissive_name; info_dialog(id, "there no available seats for " + msg); } }