We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31d76a commit f0216dfCopy full SHA for f0216df
Managers/MovableMan.cpp
@@ -1954,7 +1954,7 @@ void MovableMan::Update()
1954
Material const * terrMat = g_SceneMan.GetMaterialFromID(g_SceneMan.GetTerrain()->GetMaterialPixel(parPos.GetFloorIntX(), parPos.GetFloorIntY()));
1955
int piling = (*parIt)->GetMaterial()->GetPiling();
1956
if (piling > 0) {
1957
- for (int s = 0; terrMat->GetIndex() == (*parIt)->GetMaterial()->GetIndex() && s < piling; ++s) {
+ for (int s = 0; s < piling && (terrMat->GetIndex() == (*parIt)->GetMaterial()->GetIndex() || terrMat->GetIndex() == (*parIt)->GetMaterial()->GetSettleMaterial()); ++s) {
1958
if ((piling - s) % 2 == 0) {
1959
parPos.m_Y -= 1.0F;
1960
} else {
0 commit comments