diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-31 16:14:27 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-12-31 16:14:27 +0000 |
commit | 5f04c73af0dbc456fb24047ab11845d751bc5b16 (patch) | |
tree | e473b7b7729e36c484b9146e9804bd5623fdcba7 /src/engine.cpp | |
parent | eae0c3171fd94970105d4cbd987c8e1218481985 (diff) | |
download | mana-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.gz mana-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.bz2 mana-5f04c73af0dbc456fb24047ab11845d751bc5b16.tar.xz mana-5f04c73af0dbc456fb24047ab11845d751bc5b16.zip |
Added config options to set the scroll center. Retained scroll offset during map change for smoother map transitions.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 98b4a5f1..49ffbbfc 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -127,6 +127,11 @@ void Engine::changeMap(const std::string &mapPath) outMsg.writeInt16(CMSG_MAP_LOADED); } +void Engine::scrollBy(float scrollX, float scrollY) +{ + viewport->scrollBy(scrollX, scrollY); +} + void Engine::logic() { beingManager->logic(); |