diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 17:21:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-31 17:21:12 +0300 |
commit | 6f368ab7083c9a6232531d0610716db97f64f4b0 (patch) | |
tree | d636004023874999a5ee08184fec302f46869670 /src/localplayer.cpp | |
parent | 1139d3bea995fbd19a39c9609cc1602107404de5 (diff) | |
download | mv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.gz mv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.bz2 mv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.xz mv-6f368ab7083c9a6232531d0610716db97f64f4b0.zip |
Disable for now limits for change direction packets.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index a57349a8a..d828b2272 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -881,8 +881,8 @@ void LocalPlayer::nextTile(unsigned char dir A_UNUSED = 0) { // If the being can't move, just change direction - if (!Client::limitPackets(PACKET_DIRECTION)) - return; +// if (!Client::limitPackets(PACKET_DIRECTION)) +// return; Net::getPlayerHandler()->setDirection(dir); setDirection(dir); @@ -1055,7 +1055,7 @@ void LocalPlayer::setDestination(int x, int y) Net::getPlayerHandler()->setDestination(x, y, newDir); - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { setDirection(newDir); Net::getPlayerHandler()->setDirection(newDir); @@ -1187,7 +1187,7 @@ void LocalPlayer::startWalking(unsigned char dir) { // If the being can't move, just change direction - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { Net::getPlayerHandler()->setDirection(dir); setDirection(dir); @@ -2391,8 +2391,8 @@ void LocalPlayer::crazyMove1() if (mAction == MOVE) return; - if (!Client::limitPackets(PACKET_DIRECTION)) - return; +// if (!Client::limitPackets(PACKET_DIRECTION)) +// return; if (mDirection == Being::UP) { @@ -2425,8 +2425,8 @@ void LocalPlayer::crazyMove2() if (mAction == MOVE) return; - if (!Client::limitPackets(PACKET_DIRECTION)) - return; +// if (!Client::limitPackets(PACKET_DIRECTION)) +// return; if (mDirection == Being::UP) { @@ -2481,8 +2481,8 @@ void LocalPlayer::crazyMove3() break; } - if (!Client::limitPackets(PACKET_DIRECTION)) - return; +// if (!Client::limitPackets(PACKET_DIRECTION)) +// return; setDirection(Being::DOWN); Net::getPlayerHandler()->setDirection(Being::DOWN); @@ -2811,35 +2811,35 @@ void LocalPlayer::crazyMoveA() { case 'd': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { setDirection(Being::DOWN); Net::getPlayerHandler()->setDirection(Being::DOWN); } break; case 'u': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { setDirection(Being::UP); Net::getPlayerHandler()->setDirection(Being::UP); } break; case 'l': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { setDirection(Being::LEFT); Net::getPlayerHandler()->setDirection(Being::LEFT); } break; case 'r': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { setDirection(Being::RIGHT); Net::getPlayerHandler()->setDirection(Being::RIGHT); } break; case 'L': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { Uint8 dir = 0; switch (mDirection) @@ -2855,7 +2855,7 @@ void LocalPlayer::crazyMoveA() } break; case 'R': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { Uint8 dir = 0; switch (mDirection) @@ -2871,7 +2871,7 @@ void LocalPlayer::crazyMoveA() } break; case 'b': - if (Client::limitPackets(PACKET_DIRECTION)) +// if (Client::limitPackets(PACKET_DIRECTION)) { Uint8 dir = 0; switch (mDirection) |