isOnBotton draw changes, fixed items like mountains

This commit is contained in:
Henrique Santiago 2012-05-14 01:33:27 -03:00
parent d33d0c2ee8
commit b9b9e47bba
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void Item::draw(const Point& dest, float scaleFactor, bool animate)
// determine x,y,z patterns // determine x,y,z patterns
int xPattern = 0, yPattern = 0, zPattern = 0; int xPattern = 0, yPattern = 0, zPattern = 0;
if(isGround()) { if(isGround() || isOnBottom()) {
xPattern = m_position.x % getNumPatternsX(); xPattern = m_position.x % getNumPatternsX();
yPattern = m_position.y % getNumPatternsY(); yPattern = m_position.y % getNumPatternsY();
zPattern = m_position.z % getNumPatternsZ(); zPattern = m_position.z % getNumPatternsZ();