diff options
author | Matthew Hoops | 2011-12-13 11:33:11 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-12-13 11:33:11 -0500 |
commit | 5f276bf4ac140d05511963a255fb329274d3ba85 (patch) | |
tree | ed1ccd6633390a494f5d23e94c9e832a7892587b | |
parent | cd01d5dc1de3bdab4a0f784880a7dde1d0e7ef9a (diff) | |
download | scummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.tar.gz scummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.tar.bz2 scummvm-rg350-5f276bf4ac140d05511963a255fb329274d3ba85.zip |
PEGASUS: Add a tickCount() function
-rwxr-xr-x | engines/pegasus/util.cpp | 5 | ||||
-rwxr-xr-x | engines/pegasus/util.h | 2 |
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 |