summaryrefslogtreecommitdiff
path: root/src/dropshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-01 20:00:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-01 20:00:40 +0300
commit1ba44aeb62414ea349e462b6d4fccbaac00be115 (patch)
tree6822927e50012b758548e7e4ba84d26051ff21f4 /src/dropshortcut.cpp
parent69d405520c933b2f4c659ea6af00eb4bb7a4512f (diff)
downloadmanaverse-1ba44aeb62414ea349e462b6d4fccbaac00be115.tar.gz
manaverse-1ba44aeb62414ea349e462b6d4fccbaac00be115.tar.bz2
manaverse-1ba44aeb62414ea349e462b6d4fccbaac00be115.tar.xz
manaverse-1ba44aeb62414ea349e462b6d4fccbaac00be115.zip
Fix drop counter if drop item from any slot and buggy servers protection activated.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp
index 79f895490..5b01f7f4f 100644
--- a/src/dropshortcut.cpp
+++ b/src/dropshortcut.cpp
@@ -133,6 +133,13 @@ void DropShortcut::dropItems(int cnt)
if (!player_node)
return;
+
+ if (player_node->isServerBuggy())
+ {
+ dropItem(player_node->getQuickDropCounter());
+ return;
+ }
+
int n = 0;
for (int f = 0; f < 9; f++)
{