diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-27 01:11:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-27 01:11:39 +0300 |
commit | 8b4027516585888ad7e807b73a2f683e5a2ee0f8 (patch) | |
tree | 25c2bd424088c615997bb87b5569b2ff68b7759f /src/localplayer.cpp | |
parent | b782c12e55c65b6ca9b7384d63fb833a4c53c0bf (diff) | |
download | plus-8b4027516585888ad7e807b73a2f683e5a2ee0f8.tar.gz plus-8b4027516585888ad7e807b73a2f683e5a2ee0f8.tar.bz2 plus-8b4027516585888ad7e807b73a2f683e5a2ee0f8.tar.xz plus-8b4027516585888ad7e807b73a2f683e5a2ee0f8.zip |
Add limit for stop attack packet.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r-- | src/localplayer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 11333af42..324f3af54 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1383,6 +1383,9 @@ void LocalPlayer::attack(Being *target, bool keep, bool dontChangeEquipment) void LocalPlayer::stopAttack() { + if (!Client::limitPackets(PACKET_STOPATTACK)) + return; + if (mServerAttack && mAction == ATTACK) Net::getPlayerHandler()->stopAttack(); |