summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2007-12-31 16:14:27 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2007-12-31 16:14:27 +0000
commit5f04c73af0dbc456fb24047ab11845d751bc5b16 (patch)
treee473b7b7729e36c484b9146e9804bd5623fdcba7 /src/engine.cpp
parenteae0c3171fd94970105d4cbd987c8e1218481985 (diff)
downloadMana-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.cpp5
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();