src/audio/arts/SDL_artsaudio.c
changeset 7857 6388f5229bb7
parent 7719 31b5f9ff36ca
child 8093 b43765095a6f
--- a/src/audio/arts/SDL_artsaudio.c	Sun Oct 20 20:41:30 2013 -0700
+++ b/src/audio/arts/SDL_artsaudio.c	Sun Oct 20 20:42:55 2013 -0700
@@ -220,7 +220,7 @@
 ARTS_Suspend(void)
 {
     const Uint32 abortms = SDL_GetTicks() + 3000; /* give up after 3 secs */
-    while ( (!SDL_NAME(arts_suspended)()) && (SDL_GetTicks() < abortms) ) {
+    while ( (!SDL_NAME(arts_suspended)()) && !SDL_TICKS_PASSED(SDL_GetTicks(), abortms) ) {
         if ( SDL_NAME(arts_suspend)() ) {
             break;
         }