Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Nov 18, 2024
2 parents 80091f2 + d5fc2ee commit db6a9e9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gitVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.0
0.9.1
2 changes: 1 addition & 1 deletion source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Main extends Sprite
public static var stage3D:AwayStage;
#end

public static final PSYCH_ONLINE_VERSION:String = "0.9.0";
public static final PSYCH_ONLINE_VERSION:String = "0.9.1";
public static final CLIENT_PROTOCOL:Float = 5;
public static final GIT_COMMIT:String = online.backend.Macros.getGitCommitHash();

Expand Down
1 change: 1 addition & 0 deletions source/backend/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ import states.TitleState;
public var disableFreeplayIcons:Bool = false;
public var showFP:Bool = false;
public var disableFreeplayAlphabet:Bool = false;
public var disableLagDetection:Bool = false;

public function new()
{
Expand Down
2 changes: 1 addition & 1 deletion source/online/gui/sidebar/MainTab.hx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class MainTab extends TabSprite {

chatInputPlaceholder = new TextField();
chatInputPlaceholder.defaultTextFormat = TabSprite.getDefaultFormat();
chatInputPlaceholder.text = "(Click here to chat)";
chatInputPlaceholder.text = "(Click here or press TAB to chat)";
chatInputPlaceholder.selectable = false;
chatInputPlaceholder.y = Lib.application.window.height - (chatInputPlaceholder.textHeight + 5);
chatInputPlaceholder.width = Std.int(widthTab);
Expand Down
6 changes: 6 additions & 0 deletions source/options/GameplaySettingsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,12 @@ class GameplaySettingsSubState extends BaseOptionsMenu
'bool');
addOption(option);

var option:Option = new Option('Disable Lag Detection',
'If checked, the game will no longer rewind 3 seconds when a lag is detected',
'disableLagDetection',
'bool');
addOption(option);

super();
}

Expand Down
2 changes: 1 addition & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2400,7 +2400,7 @@ class PlayState extends MusicBeatState
}

if (!GameClient.isConnected()) {
if (!finishingSong && elapsed >= 0.1 && Conductor.songPosition > lastLagPos) {
if (!ClientPrefs.data.disableLagDetection && !finishingSong && elapsed >= 0.1 && Conductor.songPosition > lastLagPos) {
setSongTime(Conductor.songPosition - 3000);
lastLagPos = Conductor.songPosition;
Alert.alert("Mod Lag Detected (-3s)");
Expand Down

0 comments on commit db6a9e9

Please sign in to comment.