mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
Reverted getTopMultiUseThing() change
This commit is contained in:
parent
1ce6df99ac
commit
cc12db0d1f
@ -449,15 +449,15 @@ ThingPtr Tile::getTopMultiUseThing()
|
||||
if(isEmpty())
|
||||
return nullptr;
|
||||
|
||||
if(CreaturePtr topCreature = getTopCreature())
|
||||
return topCreature;
|
||||
|
||||
for(uint i = 0; i < m_things.size(); ++i) {
|
||||
ThingPtr thing = m_things[i];
|
||||
if(thing->isForceUse())
|
||||
return thing;
|
||||
}
|
||||
|
||||
if(CreaturePtr topCreature = getTopCreature())
|
||||
return topCreature;
|
||||
|
||||
for(uint i = 0; i < m_things.size(); ++i) {
|
||||
ThingPtr thing = m_things[i];
|
||||
if(!thing->isGround() && !thing->isGroundBorder() && !thing->isOnBottom() && !thing->isOnTop()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user