mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
2d2b9cc1fc
commit
87aaa30eed
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue