summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/tmwa/playerhandler.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index a4cd7b15..49db66ae 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -598,8 +598,13 @@ void PlayerHandler::increaseSkill(int skillId)
void PlayerHandler::pickUp(FloorItem *floorItem)
{
+ static Uint32 lastTime = 0;
+ if (SDL_GetTicks() < lastTime + 100)
+ return;
+
MessageOut outMsg(CMSG_ITEM_PICKUP);
outMsg.writeInt32(floorItem->getId());
+ lastTime = SDL_GetTicks();
}
void PlayerHandler::setDirection(char direction)