summaryrefslogtreecommitdiff
path: root/src/net/tmwa/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/gamehandler.cpp')
-rw-r--r--src/net/tmwa/gamehandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index e4dc62b0..93f0b86f 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -177,4 +177,11 @@ void GameHandler::setMap(const std::string map)
mMap = map.substr(0, map.rfind("."));
}
+int GameHandler::getPickupRange() const
+{
+ if (Game *game = Game::instance())
+ return game->getCurrentTileWidth();
+ return DEFAULT_TILE_LENGTH;
+}
+
} // namespace TmwAthena