Revert "Project modernization (#630)"

This code was not tested and breaks in Release builds, reverting to restore
functionality of the nightly. All in-game menus do not work and generating
a world crashes.

This reverts commit a9be52c41a.
This commit is contained in:
Loki Rautio
2026-03-07 21:12:22 -06:00
parent a9be52c41a
commit 087b7e7abf
1373 changed files with 19449 additions and 19903 deletions

View File

@@ -31,9 +31,9 @@ void FootstepParticle::render(Tesselator *t, float a, float xa, float ya, float
glDisable(GL_LIGHTING);
float r = 2 / 16.0f;
float xx = static_cast<float>(x - xOff);
float yy = static_cast<float>(y - yOff);
float zz = static_cast<float>(z - zOff);
float xx = (float) (x - xOff);
float yy = (float) (y - yOff);
float zz = (float) (z - zOff);
float br = level->getBrightness(Mth::floor(x), Mth::floor(y), Mth::floor(z));
@@ -43,10 +43,10 @@ void FootstepParticle::render(Tesselator *t, float a, float xa, float ya, float
t->begin();
t->color(br, br, br, alpha);
t->vertexUV((float)(xx - r), (float)( yy), (float)( zz + r), static_cast<float>(0), static_cast<float>(1));
t->vertexUV((float)(xx + r), (float)( yy), (float)( zz + r), static_cast<float>(1), static_cast<float>(1));
t->vertexUV((float)(xx + r), (float)( yy), (float)( zz - r), static_cast<float>(1), static_cast<float>(0));
t->vertexUV((float)(xx - r), (float)( yy), (float)( zz - r), static_cast<float>(0), static_cast<float>(0));
t->vertexUV((float)(xx - r), (float)( yy), (float)( zz + r), (float)( 0), (float)( 1));
t->vertexUV((float)(xx + r), (float)( yy), (float)( zz + r), (float)( 1), (float)( 1));
t->vertexUV((float)(xx + r), (float)( yy), (float)( zz - r), (float)( 1), (float)( 0));
t->vertexUV((float)(xx - r), (float)( yy), (float)( zz - r), (float)( 0), (float)( 0));
t->end();
glDisable(GL_BLEND);