1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix stuff and slight changes

This commit is contained in:
Gefüllte Taubenbrust 2024-09-25 21:45:13 +02:00
parent 71e648a776
commit da1a688493
3 changed files with 12 additions and 44 deletions

View file

@ -247,7 +247,7 @@ void Clouds::updateMesh()
case 1: // back
if (INAREA(xi, zi - 1, m_cloud_radius_i)) {
u32 j = GETINDEX(xi, zi - 1, m_cloud_radius_i);
if (grid[j])
if (m_grid[j])
continue;
}
if (soft_clouds_enabled) {
@ -270,7 +270,7 @@ void Clouds::updateMesh()
case 2: //right
if (INAREA(xi + 1, zi, m_cloud_radius_i)) {
u32 j = GETINDEX(xi + 1, zi, m_cloud_radius_i);
if (grid[j])
if (m_grid[j])
continue;
}
if (soft_clouds_enabled) {
@ -294,7 +294,7 @@ void Clouds::updateMesh()
case 3: // front
if (INAREA(xi, zi + 1, m_cloud_radius_i)) {
u32 j = GETINDEX(xi, zi + 1, m_cloud_radius_i);
if (grid[j])
if (m_grid[j])
continue;
}
if (soft_clouds_enabled) {
@ -317,7 +317,7 @@ void Clouds::updateMesh()
case 4: // left
if (INAREA(xi - 1, zi, m_cloud_radius_i)) {
u32 j = GETINDEX(xi - 1, zi, m_cloud_radius_i);
if (grid[j])
if (m_grid[j])
continue;
}
if (soft_clouds_enabled) {