Skip to content

Commit 412a333

Browse files
alright updating to 1.29.0
final changes: the change value speed is now more specific.. just felt there was an issue with that the donate button now redirects you to the js engine github instead of the fnf itch.io page
1 parent 21e7431 commit 412a333

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

source/GameplayChangersSubstate.hx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,16 +370,17 @@ class GameplayChangersSubstate extends MusicBeatSubstate
370370
curOption.change();
371371
FlxG.sound.play(Paths.sound('scrollMenu'));
372372
} else if(curOption.type != 'string') {
373-
holdValue = Math.max(curOption.minValue, Math.min(curOption.maxValue, holdValue + curOption.scrollSpeed * elapsed * (controls.UI_LEFT ? -1 : 1)));
374-
373+
holdValue += curOption.scrollSpeed * elapsed * (controls.UI_LEFT ? -1 : 1);
374+
if (holdValue < curOption.minValue) holdValue = curOption.minValue;
375+
if (holdValue > curOption.maxValue) holdValue = curOption.maxValue;
376+
375377
switch(curOption.type)
376378
{
377379
case 'int':
378380
curOption.setValue(Math.round(holdValue));
379381

380382
case 'float' | 'percent':
381-
var blah:Float = Math.max(curOption.minValue, Math.min(curOption.maxValue, holdValue + curOption.changeValue - (holdValue % curOption.changeValue)));
382-
curOption.setValue(FlxMath.roundDecimal(blah, curOption.decimals));
383+
curOption.setValue(FlxMath.roundDecimal(holdValue, curOption.decimals));
383384
}
384385
updateTextFrom(curOption);
385386
curOption.change();

source/MainMenuState.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using StringTools;
2626

2727
class MainMenuState extends MusicBeatState
2828
{
29-
public static var psychEngineJSVersion:String = '1.28.0'; //This is also used for Discord RPC
29+
public static var psychEngineJSVersion:String = '1.29.0'; //This is also used for Discord RPC
3030
public static var psychEngineVersion:String = '0.6.3'; //This is also used for Discord RPC
3131
public static var curSelected:Int = 0;
3232

@@ -293,7 +293,7 @@ class MainMenuState extends MusicBeatState
293293
{
294294
if (optionShit[curSelected] == 'donate')
295295
{
296-
CoolUtil.browserLoad('https://ninja-muffin24.itch.io/funkin');
296+
CoolUtil.browserLoad('https://github.com/JordanSantiagoYT/FNF-PsychEngine-NoBotplayLag');
297297
}
298298
else
299299
{

0 commit comments

Comments
 (0)