Fix calculate patterns.

This commit is contained in:
Nail 2014-04-20 23:58:26 -03:00
parent 24acf8855f
commit 25fb3113fa
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ void Item::calculatePatterns(int& xPattern, int& yPattern, int& zPattern)
xPattern = (color % 4) % getNumPatternX(); xPattern = (color % 4) % getNumPatternX();
yPattern = (color / 4) % getNumPatternY(); yPattern = (color / 4) % getNumPatternY();
} else if(isGround() || isOnBottom()) { } else {
xPattern = m_position.x % getNumPatternX(); xPattern = m_position.x % getNumPatternX();
yPattern = m_position.y % getNumPatternY(); yPattern = m_position.y % getNumPatternY();
zPattern = m_position.z % getNumPatternZ(); zPattern = m_position.z % getNumPatternZ();