isOnBotton draw changes, fixed items like mountains
This commit is contained in:
parent
d33d0c2ee8
commit
b9b9e47bba
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue