Skip to content

Commit

Permalink
patchchchch
Browse files Browse the repository at this point in the history
  • Loading branch information
Snirozu committed Nov 18, 2024
1 parent 01df98e commit 807d1b1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
name: windowsBuild
path: export/release/windows/bin
buildMac:
runs-on: macos-12
runs-on: macos-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
name: windowsBuild
path: export/release/windows/bin
buildMac:
runs-on: macos-12
runs-on: macos-latest

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand Down
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 @@ -87,6 +87,7 @@ class SaveVariables {
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 @@ -127,6 +127,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 @@ -2372,7 +2372,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 807d1b1

Please sign in to comment.