summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2010-03-04 15:04:14 +0100
committerBertram <yohanndotferreiraatorange.fr>2010-04-12 23:50:22 +0200
commitcd727d2223bc51f282bec29d666a0f5f30bdd151 (patch)
tree1d8cd6be12ec1ea42a088bb2b4a5705f1bac4ee0 /src/being.cpp
parent27c7c5f725f5cf1e3393df9393b08fdc26057212 (diff)
downloadmana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.gz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.bz2
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.tar.xz
mana-client-cd727d2223bc51f282bec29d666a0f5f30bdd151.zip
Reviewed the LocalPlayer::nextTile() function. The ManaServ movement system is functional!!
Introduced LocalPlayer::getNextWalkPosition(unsigned char dir) which takes care about the player next position while moving using keyboard. I removed the pixel scaler thing because it couldn't handle all the noticed cases and was rather heavy. There is still a bug in the movement system (nothing's perfect) but it's very rare and this is here in eAthena, too. So, I'll give a try at taking care of it once I'll have polished all of this a bit. Please try and give feedback!!
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 2500061a..44293732 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -513,12 +513,7 @@ void Being::nextTile()
int Being::getCollisionRadius() const
{
// FIXME: Get this from XML file
- int radius = getWidth() / 2;
- if (radius > 32 / 2) radius = 32 / 2;
- // set a default value if no value returned.
- if (radius < 1) radius = 32 / 3;
-
- return radius;
+ return 16;
}
void Being::logic()