Merge pull request #522 from Mignari/master
Fix calculate patterns, closes #520
This commit is contained in:
commit
b1964a1c10
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue