Fix Northshire Abbey fountain water extending too far

Fountain water at (-9048, -44, 93.7) was 2 units too large in diameter,
causing fall detection to trigger and respawn players. Lower water by 2
units within 15-unit radius of fountain center.
This commit is contained in:
Kelsi 2026-02-09 22:44:19 -08:00
parent 8cb6311470
commit b1df5d673b

View file

@ -404,6 +404,22 @@ void WaterRenderer::loadFromWMO([[maybe_unused]] const pipeline::WMOLiquid& liqu
}
}
// Fix Northshire Abbey fountain - water extends 2 units too large in diameter
// Fountain center at approximately (-9048, -44, 93.7)
glm::vec3 northshireFountainPos(-9048.0f, -44.2f, 93.7f);
float distToFountain = glm::distance(glm::vec2(surface.origin.x, surface.origin.y),
glm::vec2(northshireFountainPos.x, northshireFountainPos.y));
// Lower fountain water by 2 units if within 15 units of fountain center
if (distToFountain < 15.0f && std::abs(surface.origin.z - northshireFountainPos.z) < 5.0f) {
LOG_INFO(" -> LOWERING Northshire fountain by 2 units (dist: ", distToFountain, ")");
for (float& h : surface.heights) {
h -= 2.0f;
}
surface.minHeight -= 2.0f;
surface.maxHeight -= 2.0f;
}
// Skip WMO water that's clearly invalid (extremely high - above 300 units)
// This is a conservative global filter that won't affect normal gameplay
if (surface.origin.z > 300.0f) {