diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-03 23:28:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-03 23:28:59 +0300 |
commit | 0b8f87cd8cf8020c97e10a979b6aba8d7cafa704 (patch) | |
tree | 2d6271ea9198c606b1e33957ad5d5f22b239693b /src/gui/viewport.h | |
parent | f0f135493b2951af8661c8d7e7396c713164a723 (diff) | |
download | manaplus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.gz manaplus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.bz2 manaplus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.tar.xz manaplus-0b8f87cd8cf8020c97e10a979b6aba8d7cafa704.zip |
Improve a bit calculations in viewport.
Diffstat (limited to 'src/gui/viewport.h')
-rw-r--r-- | src/gui/viewport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/viewport.h b/src/gui/viewport.h index fa02f244b..d189b2415 100644 --- a/src/gui/viewport.h +++ b/src/gui/viewport.h @@ -184,6 +184,8 @@ class Viewport final : public WindowContainer, void updateMidVars(); + void updateMaxVars(); + static void validateSpeed(); private: @@ -233,6 +235,8 @@ class Viewport final : public WindowContainer, int mPixelViewY; /**< Current viewpoint in pixels. */ int mMidTileX; int mMidTileY; + int mViewXmax; + int mViewYmax; int mLocalWalkTime; /**< Timestamp before the next walk can be sent. */ |