Skip to content

Commit

Permalink
Fixed MsPerGameMinute being used instead of GetGameTimer in Alt:V
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
justalemon committed Dec 19, 2023
1 parent e97af6c commit 9f12ff3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LemonUI/Menus/NativeMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ private void ProcessControls()
#if RAGEMP
int time = Misc.GetGameTimer();
#elif ALTV
int time = Alt.MsPerGameMinute;
int time = Alt.Natives.GetGameTimer();
#elif RPH
uint time = Game.GameTime;
#else
Expand Down
4 changes: 2 additions & 2 deletions LemonUI/Scaleform/BigMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void FadeOut(int time)
#if RAGEMP
uint currentTime = (uint)Misc.GetGameTimer();
#elif ALTV
uint currentTime = (uint)Alt.MsPerGameMinute;
uint currentTime = (uint)Alt.Natives.GetGameTimer();
#elif RPH
uint currentTime = Game.GameTime;
#else
Expand All @@ -295,7 +295,7 @@ public override void DrawFullScreen()
#if RAGEMP
uint time = (uint)Misc.GetGameTimer();
#elif ALTV
uint time = (uint)Alt.MsPerGameMinute;
uint time = (uint)Alt.Natives.GetGameTimer();
#elif RPH
uint time = Game.GameTime;
#else
Expand Down
4 changes: 2 additions & 2 deletions LemonUI/Scaleform/BruteForce.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public void Reset()
#if RAGEMP
int time = Misc.GetGameTimer();
#elif ALTV
int time = Alt.MsPerGameMinute;
int time = Alt.Natives.GetGameTimer();
#elif RPH
uint time = Game.GameTime;
#else
Expand Down Expand Up @@ -237,7 +237,7 @@ public override void Update()
#if RAGEMP
int time = Misc.GetGameTimer();
#elif ALTV
int time = Alt.MsPerGameMinute;
int time = Alt.Natives.GetGameTimer();
#elif RPH
uint time = Game.GameTime;
#else
Expand Down

0 comments on commit 9f12ff3

Please sign in to comment.