diff options
Diffstat (limited to 'engines/pegasus/util.cpp')
-rwxr-xr-x | engines/pegasus/util.cpp | 5 |
1 files changed, 5 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 |