From e55ed9a138e97f6fba5e3b6858a755f8a50197d2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 29 May 2014 19:32:58 +0300 Subject: Move from client packets limiter related code into separate file. --- src/actionmanager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/actionmanager.cpp') 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()) -- cgit v1.2.3-70-g09d2