From 48ff67dc069004802a1817bc7d6e8e463309ac76 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 25 Jan 2014 22:14:01 +0100 Subject: [PATCH] Fix useWith issue --- src/client/game.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client/game.cpp b/src/client/game.cpp index f85e0a3d..3083c2da 100644 --- a/src/client/game.cpp +++ b/src/client/game.cpp @@ -904,10 +904,7 @@ void Game::useWith(const ItemPtr& item, const ThingPtr& toThing) if(!pos.isValid()) // virtual item pos = Position(0xFFFF, 0, 0); // means that is a item in inventory - if(toThing->isCreature() && g_game.getProtocolVersion() >= 780) - m_protocolGame->sendUseOnCreature(pos, item->getId(), item->getStackPos(), toThing->getId()); - else - m_protocolGame->sendUseItemWith(pos, item->getId(), item->getStackPos(), toThing->getPosition(), toThing->getId(), toThing->getStackPos()); + m_protocolGame->sendUseItemWith(pos, item->getId(), item->getStackPos(), toThing->getPosition(), toThing->getId(), toThing->getStackPos()); } void Game::useInventoryItemWith(int itemId, const ThingPtr& toThing)