diff options
author | Bertram <bertram@cegetel.net> | 2010-02-09 01:42:50 +0100 |
---|---|---|
committer | Bertram <bertram@cegetel.net> | 2010-02-09 01:42:50 +0100 |
commit | 56f501c8148b1061a02547d37b20eeeeb64029db (patch) | |
tree | 718e48289066706bc3851830f3c6b03150e66b97 /src/player.cpp | |
parent | 8b4d9f9b5eaf175baf0c4209c312133bb457742c (diff) | |
download | mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.gz mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.bz2 mana-56f501c8148b1061a02547d37b20eeeeb64029db.tar.xz mana-56f501c8148b1061a02547d37b20eeeeb64029db.zip |
Made the Beings' logic be able to handle any tile height/width.
This is the First step to get rid of most hardcoded 32 values.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/player.cpp b/src/player.cpp index 1d0556a6..e537a2b9 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -86,7 +86,8 @@ void Player::logic() break; case WALK: - mFrame = (int) ((get_elapsed_time(mWalkTime) * 6) / getWalkSpeed()); + mFrame = (int) ((get_elapsed_time(mWalkTime) * 6) + / getWalkSpeed().x); if (mFrame >= 6) nextTile(); break; |