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/being/being.cpp | |
parent | 88f71d6a8673932d178408e7632a6eea08623294 (diff) | |
download | mv-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.gz mv-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.bz2 mv-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.tar.xz mv-e55ed9a138e97f6fba5e3b6858a755f8a50197d2.zip |
Move from client packets limiter related code into separate file.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r-- | src/being/being.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |