From d1c92918319afa943bbc0ced77765563f1fdf559 Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Sat, 1 Aug 2009 22:39:01 -0400 Subject: Fixes pickup items on eA, also cleaned up some code --- src/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index abb74b2a..f424ad50 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -759,9 +759,14 @@ void Game::handleInput() { case KeyboardConfig::KEY_PICKUP: { +#ifdef TMWSERV_SUPPORT const Vector &pos = player_node->getPosition(); Uint16 x = (int) pos.x / 32; Uint16 y = (int) pos.y / 32; +#else + Uint16 x = player_node->getTileX(); + Uint16 y = player_node->getTileY(); +#endif FloorItem *item = floorItemManager->findByCoordinates(x, y); -- cgit v1.2.3-70-g09d2