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/being/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index 6bdf8f166..8da2d43da 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -59,6 +59,7 @@ #include "net/gamehandler.h" #include "net/net.h" #include "net/npchandler.h" +#include "net/packetlimiter.h" #include "net/pethandler.h" #include "net/playerhandler.h" @@ -2332,7 +2333,7 @@ void Being::setGM(const bool gm) void Being::talkTo() const { - if (!client->limitPackets(PACKET_NPC_TALK)) + if (!PacketLimiter::limitPackets(PACKET_NPC_TALK)) return; Net::getNpcHandler()->talk(mId); -- cgit v1.2.3-70-g09d2