Fix 'getTopMultiUseThing' returning border items.
This commit is contained in:
parent
7a8e605704
commit
d1b26781d3
|
@ -485,7 +485,7 @@ ThingPtr Tile::getTopMultiUseThing()
|
||||||
|
|
||||||
for(uint i = 0; i < m_things.size(); ++i) {
|
for(uint i = 0; i < m_things.size(); ++i) {
|
||||||
ThingPtr thing = m_things[i];
|
ThingPtr thing = m_things[i];
|
||||||
if(!thing->isGround() && !thing->isOnBottom() && !thing->isOnTop()) {
|
if(!thing->isGround() && !thing->isGroundBorder() && !thing->isOnBottom() && !thing->isOnTop()) {
|
||||||
if(i > 0 && thing->isSplash())
|
if(i > 0 && thing->isSplash())
|
||||||
return m_things[i-1];
|
return m_things[i-1];
|
||||||
return thing;
|
return thing;
|
||||||
|
|
Loading…
Reference in New Issue