diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-29 19:32:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-29 19:32:58 +0300 |
commit | e55ed9a138e97f6fba5e3b6858a755f8a50197d2 (patch) | |
tree | 90b5337d62f42b2060328905776748f32c6e4eb6 /src/actionmanager.cpp | |
parent | 88f71d6a8673932d178408e7632a6eea08623294 (diff) | |
download | manaplus-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.gz manaplus-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.bz2 manaplus-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.xz manaplus-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.zip |
Move from client packets limiter related code into separate file.
Diffstat (limited to 'src/actionmanager.cpp')
-rw-r--r-- | src/actionmanager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actionmanager.cpp b/src/actionmanager.cpp index 12e13845a..10b51cb41 100644 --- a/src/actionmanager.cpp +++ b/src/actionmanager.cpp @@ -932,7 +932,7 @@ impHandler0(directUp) { if (player_node->getDirection() != BeingDirection::UP) { -// if (client->limitPackets(PACKET_DIRECTION)) +// if (PacketLimiter::limitPackets(PACKET_DIRECTION)) { player_node->setDirection(BeingDirection::UP); if (Net::getPlayerHandler()) @@ -950,7 +950,7 @@ impHandler0(directDown) { if (player_node->getDirection() != BeingDirection::DOWN) { -// if (client->limitPackets(PACKET_DIRECTION)) +// if (PacketLimiter::limitPackets(PACKET_DIRECTION)) { player_node->setDirection(BeingDirection::DOWN); if (Net::getPlayerHandler()) @@ -971,7 +971,7 @@ impHandler0(directLeft) { if (player_node->getDirection() != BeingDirection::LEFT) { -// if (client->limitPackets(PACKET_DIRECTION)) +// if (PacketLimiter::limitPackets(PACKET_DIRECTION)) { player_node->setDirection(BeingDirection::LEFT); if (Net::getPlayerHandler()) @@ -992,7 +992,7 @@ impHandler0(directRight) { if (player_node->getDirection() != BeingDirection::RIGHT) { -// if (client->limitPackets(PACKET_DIRECTION)) +// if (PacketLimiter::limitPackets(PACKET_DIRECTION)) { player_node->setDirection(BeingDirection::RIGHT); if (Net::getPlayerHandler()) |