summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-31 17:21:12 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-31 17:21:12 +0300
commit6f368ab7083c9a6232531d0610716db97f64f4b0 (patch)
treed636004023874999a5ee08184fec302f46869670
parent1139d3bea995fbd19a39c9609cc1602107404de5 (diff)
downloadmv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.gz
mv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.bz2
mv-6f368ab7083c9a6232531d0610716db97f64f4b0.tar.xz
mv-6f368ab7083c9a6232531d0610716db97f64f4b0.zip
Disable for now limits for change direction packets.
-rw-r--r--src/actionmanager.cpp8
-rw-r--r--src/localplayer.cpp34
2 files changed, 21 insertions, 21 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp
index 3dac2f3bc..a1c423b2c 100644
--- a/src/actionmanager.cpp
+++ b/src/actionmanager.cpp
@@ -850,7 +850,7 @@ impHandler0(directUp)
{
if (player_node->getDirection() != Being::UP)
{
- if (Client::limitPackets(PACKET_DIRECTION))
+// if (Client::limitPackets(PACKET_DIRECTION))
{
player_node->setDirection(Being::UP);
Net::getPlayerHandler()->setDirection(Being::UP);
@@ -867,7 +867,7 @@ impHandler0(directDown)
{
if (player_node->getDirection() != Being::DOWN)
{
- if (Client::limitPackets(PACKET_DIRECTION))
+// if (Client::limitPackets(PACKET_DIRECTION))
{
player_node->setDirection(Being::DOWN);
Net::getPlayerHandler()->setDirection(Being::DOWN);
@@ -884,7 +884,7 @@ impHandler0(directLeft)
{
if (player_node->getDirection() != Being::LEFT)
{
- if (Client::limitPackets(PACKET_DIRECTION))
+// if (Client::limitPackets(PACKET_DIRECTION))
{
player_node->setDirection(Being::LEFT);
Net::getPlayerHandler()->setDirection(Being::LEFT);
@@ -901,7 +901,7 @@ impHandler0(directRight)
{
if (player_node->getDirection() != Being::RIGHT)
{
- if (Client::limitPackets(PACKET_DIRECTION))
+// if (Client::limitPackets(PACKET_DIRECTION))
{
player_node->setDirection(Being::RIGHT);
Net::getPlayerHandler()->setDirection(Being::RIGHT);
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)