Skip to content

Commit

Permalink
v2.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
LozenChen committed Sep 3, 2024
1 parent 23adff1 commit 1c6156a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Source/Gameplay/CassetteBlockHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,13 @@ public static void Initialize(Entity entity, out int currColorIndex, out int max
private static void SupportJungleHelper() {
jungle_SwingBlockType = ModUtils.GetType("JungleHelper", "Celeste.Mod.JungleHelper.Entities.SwingCassetteBlock");
}


private const int infiniteLoopPreventer = 2048;
public static bool GetLoopCount(float advanceTime, out int count) {
count = 0;
float time = Engine.DeltaTime * tempoMult;
while (advanceTime > 0) {
float time = Engine.DeltaTime * tempoMult;
// if tempoMult = 0, then infinite loop
while (advanceTime > 0 && count < infiniteLoopPreventer) {
advanceTime -= time;
count++;
}
Expand Down
3 changes: 1 addition & 2 deletions Source/Gameplay/ConsoleEnhancement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,7 @@ private static void OnCommandUpdateOpen(On.Monocle.Commands.orig_UpdateOpen orig
*/
}
}

// it seems this bug is gone?

[TasDisableRun]
private static void MinorBugFixer() {
// if open debugconsole and close it when in tas, then exit tas (without running any frame), debugconsole will show up
Expand Down
5 changes: 3 additions & 2 deletions Source/Module/WhatsNew.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ public static void CreateUpdateLog() {
AddLog("1.9.15", "Feature: Show the hitbox of Hollow Knight Nail from FlaglinesAndSuch.", "Feature: Spinner related features now support ChroniaHelper's SeamlessSpinner.");
AddLog("2.0.0", "Migrate to Everest Core, and target psyGamer's branch of CelesteTAS.");
AddLog("2.0.1", "Bugfix: Game crashes when there is simplified spinner / lightning. (thanks @trans_alexa)");
AddLog("2.0.2", "Feature: AutoWatchEntity put into use.", "Optimization: Now you can enter OptionSubMenu by just pressing down.");
AddLog("2.0.3", "Bugfix: resolve incompatibility with SpeedrunTool", "Addition: Add more options to AutoWatch.");
AddLog("2.0.2", "Feature: AutoWatchEntity put into use. (the name comes from @XMinty77)", "Optimization: Now you can enter OptionSubMenu by just pressing down.");
AddLog("2.0.3", "Bugfix: resolve incompatibility with SpeedrunTool", "Addition: Add more options to AutoWatch.");
AddLog("2.0.4", "Bugfix: If Cassette tempo = 0 and there's freeze frame, then game gets stuck (Thanks @trans_alexa)");
UpdateLogs.Sort((x, y) => new Version(y.Item1).CompareTo(new Version(x.Item1)));
}

Expand Down
2 changes: 1 addition & 1 deletion everest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- Name: TASHelper
Version: 2.0.3
Version: 2.0.4
DLL: bin/Release/net7.0/TASHelper.dll
Dependencies:
- Name: EverestCore
Expand Down

0 comments on commit 1c6156a

Please sign in to comment.