summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-07-27 19:32:32 -0400
committerChuck Miller <shadowmil@gmail.com>2009-07-27 19:33:40 -0400
commit5a27795be5450add2cf3da3c03b2fe8771325e3e (patch)
treedaedd1beba82a87966317b81c92f9662caae2dda /src/game.cpp
parent99648c2c8693de68ebe0449e139413864e5dd6f1 (diff)
downloadmana-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.gz
mana-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.bz2
mana-5a27795be5450add2cf3da3c03b2fe8771325e3e.tar.xz
mana-5a27795be5450add2cf3da3c03b2fe8771325e3e.zip
Makes mX and mY in the being class private
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/game.cpp b/src/game.cpp
index e35e707c..abb74b2a 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -759,14 +759,9 @@ 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->mX;
- Uint16 y = player_node->mY;
-#endif
FloorItem *item =
floorItemManager->findByCoordinates(x, y);
@@ -938,14 +933,9 @@ void Game::handleInput()
return;
}
-#ifdef TMWSERV_SUPPORT
const Vector &pos = player_node->getPosition();
const Uint16 x = (int) pos.x / 32;
const Uint16 y = (int) pos.y / 32;
-#else
- const Uint16 x = player_node->mX;
- const Uint16 y = player_node->mY;
-#endif
unsigned char direction = 0;
// Translate pressed keys to movement and direction