fix use with for bottom items

* fix hangables
This commit is contained in:
Eduardo Bart 2012-04-05 00:20:40 -03:00
parent f8d4ef60d9
commit f1fda8050a
2 changed files with 7 additions and 1 deletions

View File

@ -92,7 +92,7 @@ void Item::draw(const Point& dest, float scaleFactor, bool animate)
if(tile) {
if(tile->mustHookSouth())
xPattern = getNumPatternsX() >= 2 ? 1 : 0;
else if(tile->mustHookSouth())
else if(tile->mustHookEast())
xPattern = getNumPatternsX() >= 3 ? 2 : 0;
}
} else if(isFluid() || isFluidContainer()) {

View File

@ -338,6 +338,12 @@ ThingPtr Tile::getTopMultiUseThing()
}
}
for(uint i = 0; i < m_things.size(); ++i) {
ThingPtr thing = m_things[i];
if(!thing->isGround() && !thing->isGroundBorder() && !thing->isOnTop())
return thing;
}
return m_things[0];
}