aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pegasus')
-rwxr-xr-xengines/pegasus/util.cpp5
-rwxr-xr-xengines/pegasus/util.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/pegasus/util.cpp b/engines/pegasus/util.cpp
index 9f4ad57bdd..f0d80f5827 100755
--- a/engines/pegasus/util.cpp
+++ b/engines/pegasus/util.cpp
@@ -24,6 +24,7 @@
*/
#include "common/random.h"
+#include "common/system.h"
#include "common/util.h"
#include "pegasus/util.h"
@@ -87,4 +88,8 @@ int32 linearInterp(const int32 start1, const int32 stop1, const int32 current1,
return start2 + pegasusRound((current1 - start1) * (stop2 - start2), (stop1 - start1));
}
+uint32 tickCount() {
+ return g_system->getMillis() * 60 / 1000;
+}
+
} // End of namespace Pegasus
diff --git a/engines/pegasus/util.h b/engines/pegasus/util.h
index de2deb7436..6eb15802a5 100755
--- a/engines/pegasus/util.h
+++ b/engines/pegasus/util.h
@@ -128,6 +128,8 @@ int32 linearInterp(const int32 start1, const int32 stop1, const int32 current1,
int32 pegasusRound(const int32 a, const int32 b);
+uint32 tickCount();
+
} // End of namespace Pegasus
#endif