diff options
-rw-r--r-- | backends/platform/n64/Makefile | 1 | ||||
-rw-r--r-- | backends/platform/n64/osys_n64_base.cpp | 9 |
2 files changed, 3 insertions, 7 deletions
diff --git a/backends/platform/n64/Makefile b/backends/platform/n64/Makefile index 562c704eb0..8de2634a82 100644 --- a/backends/platform/n64/Makefile +++ b/backends/platform/n64/Makefile @@ -18,7 +18,6 @@ DEFINES += -D__N64__ -DLIMIT_FPS -DNONSTANDARD_PORT -DDISABLE_DEFAULT_SAVEFILEMA LIBS += -lpakfs -lframfs -ln64 -ln64utils -lromfs #DEFINES += -D_ENABLE_DEBUG_ -#DEFINES += -D_NORMAL_N64_DELAY_ USE_LIBMAD=0 USE_LIBOGG=0 diff --git a/backends/platform/n64/osys_n64_base.cpp b/backends/platform/n64/osys_n64_base.cpp index ce82cf5a09..2ee99d2ddc 100644 --- a/backends/platform/n64/osys_n64_base.cpp +++ b/backends/platform/n64/osys_n64_base.cpp @@ -795,7 +795,6 @@ uint32 OSystem_N64::getMillis() { } void OSystem_N64::delayMillis(uint msecs) { -#ifndef _NORMAL_N64_DELAY_ // In some cases a game might hang waiting for audio being // played. This is a workaround for all the situations i // found (kyra 1 & 2 DOS). @@ -804,13 +803,11 @@ void OSystem_N64::delayMillis(uint msecs) { refillAudioBuffers(); uint32 pastMillis = (getMilliTick() - oldTime); - if (pastMillis >= msecs) + if (pastMillis >= msecs) { return; - else + } else { delay(msecs - pastMillis); -#else - delay(msecs); -#endif + } } // As we don't have multi-threading, no need for mutexes |