1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-31 18:31:04 +00:00

Undo silly Visual Studio autocorrect stuff

My rage is untethered and knows no bounds
This commit is contained in:
Gefüllte Taubenbrust 2024-12-28 21:45:51 +01:00
parent 6b6baf3fd7
commit 83aeec4935

View file

@ -91,16 +91,13 @@ void Clouds::updateMesh()
if (!m_mesh_valid) {
// mesh was never created or invalidated
}
else if (m_mesh_origin.getDistanceFrom(m_origin) >= max_d) {
} else if (m_mesh_origin.getDistanceFrom(m_origin) >= max_d) {
// clouds moved
}
else if (center_of_drawing_in_noise_i != m_last_noise_center) {
} else if (center_of_drawing_in_noise_i != m_last_noise_center) {
// noise offset changed
// I think in practice this never happens due to the camera offset
// being smaller than the cloud size.(?)
}
else {
} else {
return;
}
@ -232,8 +229,7 @@ void Clouds::updateMesh()
}
v[2].Color = c_bottom;
v[3].Color = c_bottom;
}
else {
} else {
for (video::S3DVertex& vertex : v) {
vertex.Color = c_side_1;
vertex.Normal.set(0, 0, -1);
@ -280,8 +276,7 @@ void Clouds::updateMesh()
}
v[2].Color = c_bottom;
v[3].Color = c_bottom;
}
else {
} else {
for (video::S3DVertex& vertex : v) {
vertex.Color = c_side_1;
vertex.Normal.set(0, 0, -1);
@ -304,8 +299,7 @@ void Clouds::updateMesh()
}
v[2].Color = c_bottom;
v[3].Color = c_bottom;
}
else {
} else {
for (video::S3DVertex& vertex : v) {
vertex.Color = c_side_2;
vertex.Normal.set(-1, 0, 0);
@ -344,8 +338,7 @@ void Clouds::updateMesh()
if (mb->getIndexCount() > index_count) {
indices.resize(index_count);
mb->setDirty(scene::EBT_INDEX);
}
else if (mb->getIndexCount() < index_count) {
} else if (mb->getIndexCount() < index_count) {
const u32 start = mb->getIndexCount() / 6;
assert(start * 6 == mb->getIndexCount());
for (u32 k = start; k < quad_count; k++) {