diff options
author | Didier 'OdyX' Raboud <didier@raboud.com> | 2013-10-23 14:22:20 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2013-10-24 21:12:52 +0200 |
commit | 97baf7242e49dd09d67b5c94441f983d61eaaeb3 (patch) | |
tree | e6ed02f31e8859cc7f951449dd9c55d187de7426 /src | |
parent | 591ba30a0051c856c8b877b8687f071e0212e28c (diff) | |
download | colobot-97baf7242e49dd09d67b5c94441f983d61eaaeb3.tar.gz colobot-97baf7242e49dd09d67b5c94441f983d61eaaeb3.tar.bz2 colobot-97baf7242e49dd09d67b5c94441f983d61eaaeb3.zip |
Fix system_other implementation by adding an Init() and fixing the wrong const
Diffstat (limited to 'src')
-rw-r--r-- | src/app/system_other.cpp | 2 | ||||
-rw-r--r-- | src/app/system_other.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/app/system_other.cpp b/src/app/system_other.cpp index da81a6d..9d9f76a 100644 --- a/src/app/system_other.cpp +++ b/src/app/system_other.cpp @@ -33,7 +33,7 @@ long long int CSystemUtilsOther::GetTimeStampExactResolution() return 1000000ll; } -long long int CSystemUtilsOther::TimeStampExactDiff(SystemTimeStamp* before, SystemTimeStamp* after) const +long long int CSystemUtilsOther::TimeStampExactDiff(SystemTimeStamp* before, SystemTimeStamp* after) { return (after->sdlTicks - before->sdlTicks) * 1000000ll; } diff --git a/src/app/system_other.h b/src/app/system_other.h index b10a326..7eccf3f 100644 --- a/src/app/system_other.h +++ b/src/app/system_other.h @@ -40,10 +40,11 @@ struct SystemTimeStamp class CSystemUtilsOther : public CSystemUtils { public: + virtual void Init() {}; virtual SystemDialogResult SystemDialog(SystemDialogType type, const std::string& title, const std::string& message) override; virtual void GetCurrentTimeStamp(SystemTimeStamp *stamp) override; - virtual long long GetTimeStampExactResolution() override; + virtual long long int GetTimeStampExactResolution() override; virtual long long TimeStampExactDiff(SystemTimeStamp *before, SystemTimeStamp *after) override; }; |