Merge pull request #522 from Mignari/master

Fix calculate patterns, closes #520
This commit is contained in:
Henrique Santiago 2014-04-21 00:24:22 -03:00
commit b1964a1c10
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();