Fix carpet sliding and brighten WMO interiors 10%

- Carpet slide fix: use raw model bounds (rawMax.z) instead of radius-
  inflated effectiveTop for the on-top-of-object check, so thin objects
  like rugs correctly skip lateral push
- Brighten WMO interior vertex lighting from 2.2/0.3 to 2.4/0.35
This commit is contained in:
Kelsi 2026-02-07 17:09:57 -08:00
parent 2d2b9cc1fc
commit 87aaa30eed
2 changed files with 2 additions and 2 deletions

View file

@ -2398,7 +2398,7 @@ bool M2Renderer::checkCollision(const glm::vec3& from, const glm::vec3& to,
if (allowEscapeRelax) {
continue;
}
if (stepableLowObject && nearTop) {
if (stepableLowObject && localFrom.z >= rawMax.z - 0.35f) {
// Already on/near top surface: don't apply lateral push that ejects
// the player from the object (carpets, platforms, etc).
continue;