File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace mod {
5
5
6
- const char *VersionNumber = " v3.0.41 " ;
6
+ const char *VersionNumber = " v3.0.42 " ;
7
7
8
8
const char *RootLines[] =
9
9
{
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ void lockFlagsMenuSetNewArea(uint32_t index)
358
358
359
359
if (Flag && tempMemory)
360
360
{
361
- // Back up the LSWFs
361
+ // Back up the standard flags
362
362
uint32_t GlobalWorkPtrRaw = reinterpret_cast <uint32_t >(ttyd::mariost::globalWorkPointer);
363
363
void *MemoryStart = reinterpret_cast <void *>(GlobalWorkPtrRaw + Region->Offset );
364
364
memcpy (&tempMemory[0 ], MemoryStart, Region->Size );
@@ -4174,13 +4174,18 @@ void updateOnScreenTimerVars()
4174
4174
4175
4175
int64_t CurrentFrameTime = gc::OSTime::OSGetTime ();
4176
4176
4177
- if (!OnScreenTimer.TimerPaused &&
4177
+ // Make sure the previous frame time has a value set
4178
+ int64_t PreviousFrameTime = OnScreenTimer.PreviousFrameTime ;
4179
+ if (PreviousFrameTime != 0 )
4180
+ {
4181
+ if (!OnScreenTimer.TimerPaused &&
4178
4182
(!MenuVar.MenuIsDisplayed || MenuVar.HideMenu ) &&
4179
4183
!SpawnItem.InAdjustableValueMenu &&
4180
4184
!MenuVar.ChangingCheatButtonCombo )
4181
- {
4182
- int64_t IncrementAmount = CurrentFrameTime - OnScreenTimer.PreviousFrameTime ;
4183
- OnScreenTimer.MainTimer += IncrementAmount;
4185
+ {
4186
+ int64_t IncrementAmount = CurrentFrameTime - PreviousFrameTime;
4187
+ OnScreenTimer.MainTimer += IncrementAmount;
4188
+ }
4184
4189
}
4185
4190
4186
4191
OnScreenTimer.PreviousFrameTime = CurrentFrameTime;
You can’t perform that action at this time.
0 commit comments