diff options
Diffstat (limited to 'scumm/logic_he.cpp')
-rw-r--r-- | scumm/logic_he.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/logic_he.cpp b/scumm/logic_he.cpp index 2c9e9e6f39..fea0087c68 100644 --- a/scumm/logic_he.cpp +++ b/scumm/logic_he.cpp @@ -37,6 +37,13 @@ LogicHE::~LogicHE() { free(_userDataD); } +double LogicHE::round(double arg) { + if (floor(arg) + 0.5 > arg) + return floor(arg); + else + return ceil(arg); +} + int LogicHE::versionID() { return 1; } |