- Fixed Freeze Time slowing down the immunity timer

This commit is contained in:
EricPlayZ
2024-02-15 01:40:26 +02:00
parent 2eb1e7d25d
commit 488c735fa2
2 changed files with 4 additions and 4 deletions

View File

@ -10,11 +10,11 @@ R"(- You can now load custom mod files from "EGameTools\UserModFiles"! Please re
- Added "Reload Jump Params", using the directory mentioned earlier (Player)
- Added "One-handed Mode" (Player)
- Added "Nightrunner Mode" (Player)
- Added "Nightrunner Mode", default button is "F9" (Player)
- Added "Disable Game Pause While AFK" (Misc)
- Added "Freeze Time" (World)
- Added "Game Speed" slider (World)
- Added "Slow Motion" (World)
- Added "Slow Motion", default button is "4" (World)
- Fixed having a weird offset of the entire map view when FreeCam is enabled
- Fixed player dying from switching FreeCam off after flying to high altitudes/through walls with <EFBFBD>Teleport Player to Camera<EFBFBD> option)" }

View File

@ -75,7 +75,7 @@ namespace Menu {
if (!menuToggle.GetValue()) {
time = dayNightCycle->time1 * 24.0f;
if (freezeTime.GetValue() && !Utils::Values::are_samef(time, timeBeforeFreeze))
if (freezeTime.GetValue() && !Utils::Values::are_samef(time, timeBeforeFreeze, 0.009999f))
dayNightCycle->SetDaytime(timeBeforeFreeze);
if (!slowMotion.GetValue() && !slowMotion.HasChanged())
@ -99,7 +99,7 @@ namespace Menu {
dayNightCycle->SetDaytime(time);
}
time = dayNightCycle->time1 * 24.0f;
if (freezeTime.GetValue() && !Utils::Values::are_samef(time, timeBeforeFreeze))
if (freezeTime.GetValue() && !Utils::Values::are_samef(time, timeBeforeFreeze, 0.009999f))
dayNightCycle->SetDaytime(timeBeforeFreeze);
}