mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port: fix (?) slomo at high framerates
This commit is contained in:
1 parent
f394f209b2
commit
5bb4f1d193
2 files changed
+9
-7
No files matched your search
+4
-4
@@ -2059,7 +2059,7 @@ void lvTick(void)
|
||||
if (slowmo == SLOWMOTION_ON) {
|
||||
if (g_Vars.speedpillon == false || g_Vars.in_cutscene) {
|
||||
if (g_Vars.lvupdate240 > LV_SLOMO_TICK_CAP) {
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_CAP;
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_RATE;
|
||||
}
|
||||
}
|
||||
} else if (slowmo == SLOWMOTION_SMART) {
|
||||
@@ -2090,7 +2090,7 @@ void lvTick(void)
|
||||
|
||||
if (foundnearbychr) {
|
||||
if (g_Vars.lvupdate240 > LV_SLOMO_TICK_CAP) {
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_CAP;
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_RATE;
|
||||
}
|
||||
} else {
|
||||
if (g_Vars.lvupdate240 > TICKS(8)) {
|
||||
@@ -2099,7 +2099,7 @@ void lvTick(void)
|
||||
}
|
||||
} else {
|
||||
if (g_Vars.lvupdate240 > LV_SLOMO_TICK_CAP) {
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_CAP;
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_RATE;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2107,7 +2107,7 @@ void lvTick(void)
|
||||
// Slow motion settings are off
|
||||
if (g_Vars.speedpillon && g_Vars.in_cutscene == false) {
|
||||
if (g_Vars.lvupdate240 > LV_SLOMO_TICK_CAP) {
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_CAP;
|
||||
g_Vars.lvupdate240 = LV_SLOMO_TICK_RATE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user