Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

M302de: make timewarps a bit slower

  • Loading branch information...
commit 90fee488f1a2b892cee2145300ab035dbacc5487 1 parent 2f879fa
@Henne authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/custom/schick/rewrite_m302de/seg002.cpp
View
11 src/custom/schick/rewrite_m302de/seg002.cpp
@@ -1797,8 +1797,13 @@ void timewarp(unsigned int time)
ds_writeb(0xbcda, 1);
- for (i = 0; i < time; i++)
+ for (i = 0; i < time; i++) {
do_timers();
+#ifdef M302de_ORIGINAL_BUGFIX
+ if (i % 768 == 0)
+ wait_for_vsync();
+#endif
+ }
sub_ingame_timers(time);
@@ -1853,6 +1858,10 @@ void timewarp_until(unsigned int time)
do {
do_timers();
i++;
+#ifdef M302de_ORIGINAL_BUGFIX
+ if (i % 768 == 0)
+ wait_for_vsync();
+#endif
} while (time != ds_readd(DAY_TIMER));
sub_ingame_timers(i);
Please sign in to comment.
Something went wrong with that request. Please try again.