diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 05:16:27 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-03-09 05:16:27 +0000 |
commit | e5f795ad9952b8bba6993ee3e324b22a0f104816 (patch) | |
tree | 1602ac0f74865135eae5acf935b0a285a8e918c2 /src/engine.cpp | |
parent | 7593d6c71e2331c3e43c732db60ad03ee4d5385d (diff) | |
download | mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.gz mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.bz2 mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.tar.xz mana-client-e5f795ad9952b8bba6993ee3e324b22a0f104816.zip |
Made all class members named like mClassMember.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 2cf0fc87..43d4d0e5 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -180,8 +180,8 @@ void Engine::draw(Graphics *graphics) int midTileX = graphics->getWidth() / 32 / 2; int midTileY = graphics->getHeight() / 32 / 2; - int map_x = (player_node->x - midTileX) * 32 + player_node->getXOffset(); - int map_y = (player_node->y - midTileY) * 32 + player_node->getYOffset(); + int map_x = (player_node->mX - midTileX) * 32 + player_node->getXOffset(); + int map_y = (player_node->mY - midTileY) * 32 + player_node->getYOffset(); if (mCurrentMap) { if (map_x < 0) { @@ -221,7 +221,7 @@ void Engine::draw(Graphics *graphics) int mouseTileY = mouseY / 32 + camera_y; Path debugPath = mCurrentMap->findPath( - player_node->x, player_node->y, + player_node->mX, player_node->mY, mouseTileX, mouseTileY); for (PathIterator i = debugPath.begin(); i != debugPath.end(); i++) |