From 057db1b68c921e844d7400d66b7849a6f105048f Mon Sep 17 00:00:00 2001 From: Torwent Date: Mon, 16 Aug 2021 23:16:41 +0200 Subject: [PATCH] hotfix #patch This was getting stuck on some accounts. Sorry! --- osr/antiban/biometrics.simba | 9 ++++++--- osr/interface/xpdrop.simba | 11 +---------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/osr/antiban/biometrics.simba b/osr/antiban/biometrics.simba index 4c2cdc5b..4da75d8a 100644 --- a/osr/antiban/biometrics.simba +++ b/osr/antiban/biometrics.simba @@ -92,9 +92,12 @@ end; function TAntiban.GetUniqueNumber(Input, Min, Max: Extended): Extended; overload; begin - repeat - Result := Input * Self.GetInfluencer; - until (Result >= Min) and (Result <= Max); + Result := Input * Self.GetInfluencer; + + if Result < Min then + Result := Min + else if Result > Max then + Result := Max; end; diff --git a/osr/interface/xpdrop.simba b/osr/interface/xpdrop.simba index 99d3badc..e023c475 100644 --- a/osr/interface/xpdrop.simba +++ b/osr/interface/xpdrop.simba @@ -15,16 +15,7 @@ const XP_COLORS XP_COLORS is the constant holding all possible XPDrop colors. .. pascal:: - XP_COLORS: TIntegerArray = [ - $FFFFFF, //white - $FFC8C8, //lilac - $FF00FF, //cyan - $C8FFC8, //jade - $64FF64, //lime - $40FFFF, //yellow - $1F98FF, //orange - $C8C8FF //pink - ]; + XP_COLORS: TIntegerArray = [$FFFFFF, $FFC8C8, $FF00FF, $C8FFC8, $64FF64, $40FFFF, $1F98FF, $C8C8FF]; *) const XP_COLORS: TIntegerArray = [