Ice: Implement other acceleration for ice

This commit is contained in:
Er2
2023-12-02 18:46:40 +03:00
parent 9b76709059
commit e78fcc3448
5 changed files with 6 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ void ItemEntity::tick()
dragFactor = 0.588f;
TileID tile = m_pLevel->getTile(Mth::floor(m_pos.x), Mth::floor(m_hitbox.min.y) - 1, Mth::floor(m_pos.z));
if (tile > 0)
dragFactor = Tile::tiles[tile]->field_30 * 0.98f;
dragFactor = Tile::tiles[tile]->m_acceleration * 0.98f;
}
m_vel.x *= dragFactor;

View File

@@ -519,7 +519,7 @@ void Mob::travel(float a2, float a3)
if (tile <= 0)
_x1 = 0.546f;
else
_x1 = Tile::tiles[tile]->field_30 * 0.91f;
_x1 = Tile::tiles[tile]->m_acceleration * 0.91f;
assert(_x1 != 0.0f);
@@ -542,7 +542,7 @@ void Mob::travel(float a2, float a3)
if (tile <= 0)
dragFactor = 0.546f;
else
dragFactor = Tile::tiles[tile]->field_30 * 0.91f;
dragFactor = Tile::tiles[tile]->m_acceleration * 0.91f;
}
if (onLadder())