aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/drives.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tinsel/drives.cpp')
-rw-r--r--engines/tinsel/drives.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/tinsel/drives.cpp b/engines/tinsel/drives.cpp
index efc7a2046d..61da0345a8 100644
--- a/engines/tinsel/drives.cpp
+++ b/engines/tinsel/drives.cpp
@@ -33,12 +33,17 @@
namespace Tinsel {
+// FIXME: Avoid non-const global vars
+
char currentCD = '1';
static uint32 cdFlags[] = { fCd1, fCd2, fCd3, fCd4, fCd5, fCd6, fCd7, fCd8 };
static bool bChangingCD = false;
static char nextCD = '\0';
+static uint32 lastTime = 0;
+extern LANGUAGE sampleLanguage;
+
void CdCD(CORO_PARAM) {
CORO_BEGIN_CONTEXT;
@@ -94,9 +99,6 @@ int GetCD(int flags) {
return cd;
}
-static uint32 lastTime = 0;
-extern LANGUAGE sampleLanguage;
-
void DoCdChange() {
if (bChangingCD && (g_system->getMillis() > (lastTime + 1000))) {
lastTime = g_system->getMillis();