diff options
author | Bertram <yohanndotferreiraatorange.fr> | 2010-04-16 13:58:56 +0200 |
---|---|---|
committer | Bertram <yohanndotferreiraatorange.fr> | 2010-04-17 12:03:44 +0200 |
commit | 3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5 (patch) | |
tree | 5737c40d37a7b87897b9dc9b422198b28a18b13a /src/localplayer.cpp | |
parent | 924760c45e0f1aa1105e192bd83d6a4ce2c80f81 (diff) | |
download | mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.gz mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.bz2 mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.tar.xz mana-3ae525b05858af105cc7e3eb6ac7316fc2f5bbd5.zip |
Changed eAthena protocol name to TmwAthena and changed the config files accordingly.
This makes room for the actual eAthena protocol future inclusion.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 961248dc..ff7961b9 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -594,7 +594,7 @@ Position LocalPlayer::getNextWalkPosition(unsigned char dir) void LocalPlayer::nextTile(unsigned char dir = 0) { - if (Net::getNetworkType() == ServerInfo::EATHENA) + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { // TODO: Fix picking up when reaching target (this method is obsolete) // TODO: Fix holding walking button to keep walking smoothly @@ -768,7 +768,7 @@ void LocalPlayer::setDestination(int x, int y) // If the destination given to being class is accepted, // we inform the Server. if ((x == mDest.x && y == mDest.y) - || Net::getNetworkType() == ServerInfo::EATHENA) + || Net::getNetworkType() == ServerInfo::TMWATHENA) Net::getPlayerHandler()->setDestination(x, y, mDirection); } @@ -823,7 +823,7 @@ void LocalPlayer::setWalkingDir(int dir) void LocalPlayer::startWalking(unsigned char dir) { // This function is called by setWalkingDir(), - // but also by nextTile() for eAthena... + // but also by nextTile() for TMW-Athena... if (!mMap || !dir) return; @@ -850,7 +850,7 @@ void LocalPlayer::startWalking(unsigned char dir) if (dir & RIGHT) dx++; - if (Net::getNetworkType() == ServerInfo::EATHENA) + if (Net::getNetworkType() == ServerInfo::TMWATHENA) { // Prevent skipping corners over colliding tiles if (dx && !mMap->getWalk(getTileX() + dx, getTileY(), getWalkMask())) @@ -1028,7 +1028,7 @@ void LocalPlayer::attack(Being *target, bool keep) } Net::getPlayerHandler()->attack(target->getId()); - if ((Net::getNetworkType() == ServerInfo::EATHENA) && !keep) + if ((Net::getNetworkType() == ServerInfo::TMWATHENA) && !keep) stopAttack(); } |