aboutsummaryrefslogtreecommitdiff
path: root/sword1
diff options
context:
space:
mode:
Diffstat (limited to 'sword1')
-rw-r--r--sword1/control.cpp3
-rw-r--r--sword1/credits.cpp5
-rw-r--r--sword1/sword1.cpp2
3 files changed, 9 insertions, 1 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp
index c6f68f5324..1f8ff59301 100644
--- a/sword1/control.cpp
+++ b/sword1/control.cpp
@@ -1033,7 +1033,9 @@ void Control::delay(uint32 msecs) {
break;
}
}
+#ifndef __PALM_OS__
_system->delayMillis(10);
+#endif
} while (_system->getMillis() < endTime);
}
@@ -1230,3 +1232,4 @@ const uint8 Control::_languageStrings[8 * 20][43] = {
};
} // End of namespace Sword1
+
diff --git a/sword1/credits.cpp b/sword1/credits.cpp
index 7b4c255c50..75fc8b2060 100644
--- a/sword1/credits.cpp
+++ b/sword1/credits.cpp
@@ -21,7 +21,7 @@
#include "stdafx.h"
#include "sword1/credits.h"
-#include "screen.h"
+#include "sword1/screen.h"
#include "common/file.h"
#include "sound/mixer.h"
#include "common/util.h"
@@ -281,8 +281,11 @@ void CreditsPlayer::delay(int msecs) {
break;
}
}
+
+#ifndef __PALM_OS__
if (msecs > 0)
_system->delayMillis(10);
+#endif
} while ((_system->getMillis() < start + msecs) && !SwordEngine::_systemVars.engineQuit);
}
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp
index de6ae15006..1b474136a6 100644
--- a/sword1/sword1.cpp
+++ b/sword1/sword1.cpp
@@ -599,8 +599,10 @@ void SwordEngine::delay(int32 amount) { //copied and mutilated from sky.cpp
break;
}
}
+#ifndef __PALM_OS__
if (amount > 0)
_system->delayMillis(10);
+#endif
} while (_system->getMillis() < start + amount);
}