diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-03-23 11:47:52 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-03-23 11:47:52 +0000 |
commit | df4edbc8cbe7cf53f3918921a5791afc2cecc264 (patch) | |
tree | 45fe194966f46584ecd17549f6f078b6bad40340 /src/net | |
parent | 3cc92062946ba52e58d133933ac73393f74e6922 (diff) | |
download | mana-client-df4edbc8cbe7cf53f3918921a5791afc2cecc264.tar.gz mana-client-df4edbc8cbe7cf53f3918921a5791afc2cecc264.tar.bz2 mana-client-df4edbc8cbe7cf53f3918921a5791afc2cecc264.tar.xz mana-client-df4edbc8cbe7cf53f3918921a5791afc2cecc264.zip |
Removed unnecessary forwarding method.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/playerhandler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/playerhandler.cpp b/src/net/playerhandler.cpp index 0ea404ed..b3355ef8 100644 --- a/src/net/playerhandler.cpp +++ b/src/net/playerhandler.cpp @@ -33,11 +33,13 @@ #include "../gui/buy.h" #include "../gui/chat.h" +#include "../gui/gui.h" #include "../gui/npclistdialog.h" #include "../gui/npc_text.h" #include "../gui/ok_dialog.h" #include "../gui/sell.h" #include "../gui/skill.h" +#include "../gui/viewport.h" // TODO Move somewhere else OkDialog *weightNotice = NULL; @@ -136,7 +138,7 @@ void PlayerHandler::handleMessage(MessageIn *msg) logger->log("Adjust scrolling by %d:%d", (int)scrollOffsetX, (int)scrollOffsetY); - engine->scrollBy(scrollOffsetX, scrollOffsetY); + viewport->scrollBy(scrollOffsetX, scrollOffsetY); } break; |