mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 12:34:55 +02:00

committed by
Ahmed Samy

parent
0676b68493
commit
2292df922d
@@ -778,12 +778,12 @@ void Game::stop()
|
||||
m_protocolGame->sendStop();
|
||||
}
|
||||
|
||||
void Game::look(const ThingPtr& thing)
|
||||
void Game::look(const ThingPtr& thing, bool isBattleList)
|
||||
{
|
||||
if(!canPerformGameAction() || !thing)
|
||||
return;
|
||||
|
||||
if(thing->isCreature() && m_protocolVersion >= 961)
|
||||
if(thing->isCreature() && isBattleList && m_protocolVersion >= 961)
|
||||
m_protocolGame->sendLookCreature(thing->getId());
|
||||
else
|
||||
m_protocolGame->sendLook(thing->getPosition(), thing->getId(), thing->getStackPos());
|
||||
|
@@ -173,7 +173,7 @@ public:
|
||||
void stop();
|
||||
|
||||
// item related
|
||||
void look(const ThingPtr& thing);
|
||||
void look(const ThingPtr& thing, bool isBattleList = false);
|
||||
void move(const ThingPtr &thing, const Position& toPos, int count);
|
||||
void moveToParentContainer(const ThingPtr& thing, int count);
|
||||
void rotate(const ThingPtr& thing);
|
||||
|
Reference in New Issue
Block a user