Skip to content

Commit

Permalink
Merge pull request #315 from cm8263/master
Browse files Browse the repository at this point in the history
Dispose of Noclip scaleform when not in use
  • Loading branch information
XdGoldenTigerOfficial authored Nov 27, 2023
2 parents c947b95 + 33e6935 commit 06c8337
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vMenu/Noclip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class NoClip : BaseScript
{
private static bool NoclipActive { get; set; } = false;
private static int MovingSpeed { get; set; } = 0;
private static int Scale { get; set; } = -1;
private static int Scale = -1;
private static bool FollowCamMode { get; set; } = true;


Expand All @@ -38,6 +38,13 @@ public NoClip()
internal static void SetNoclipActive(bool active)
{
NoclipActive = active;

if (!active)
{
SetScaleformMovieAsNoLongerNeeded(ref Scale);

Scale = -1;
}
}

internal static bool IsNoclipActive()
Expand Down

0 comments on commit 06c8337

Please sign in to comment.