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

@@ -11,48 +11,48 @@ SpiderModel::SpiderModel() : Model()
head = new ModelPart(this, 32, 4);
head->addBox(-4, -4, -8, 8, 8, 8, g); // Head
head->setPos(0, static_cast<float>(0 + yo), -3);
head->setPos(0, (float)(0+yo), -3);
body0 = new ModelPart(this, 0, 0);
body0->addBox(-3, -3, -3, 6, 6, 6, g); // Body
body0->setPos(0,static_cast<float>(yo), 0);
body0->setPos(0,(float)(yo), 0);
body1 = new ModelPart(this, 0, 12);
body1->addBox(-5, -4, -6, 10, 8, 12, g); // Body
body1->setPos(0, static_cast<float>(0 + yo), 3 + 6);
body1->setPos(0, (float)(0+yo), 3 + 6);
leg0 = new ModelPart(this, 18, 0);
leg0->addBox(-15, -1, -1, 16, 2, 2, g); // Leg0
leg0->setPos(-4, static_cast<float>(0 + yo), 2);
leg0->setPos(-4, (float)(0+yo), 2);
leg1 = new ModelPart(this, 18, 0);
leg1->addBox(-1, -1, -1, 16, 2, 2, g); // Leg1
leg1->setPos(4, static_cast<float>(0 + yo), 2);
leg1->setPos(4, (float)(0+yo), 2);
leg2 = new ModelPart(this, 18, 0);
leg2->addBox(-15, -1, -1, 16, 2, 2, g); // Leg2
leg2->setPos(-4, static_cast<float>(0 + yo), 1);
leg2->setPos(-4, (float)(0+yo), 1);
leg3 = new ModelPart(this, 18, 0);
leg3->addBox(-1, -1, -1, 16, 2, 2, g); // Leg3
leg3->setPos(4, static_cast<float>(0 + yo), 1);
leg3->setPos(4, (float)(0+yo), 1);
leg4 = new ModelPart(this, 18, 0);
leg4->addBox(-15, -1, -1, 16, 2, 2, g); // Leg0
leg4->setPos(-4, static_cast<float>(0 + yo), 0);
leg4->setPos(-4, (float)(0+yo), 0);
leg5 = new ModelPart(this, 18, 0);
leg5->addBox(-1, -1, -1, 16, 2, 2, g); // Leg1
leg5->setPos(4, static_cast<float>(0 + yo), 0);
leg5->setPos(4, (float)(0+yo), 0);
leg6 = new ModelPart(this, 18, 0);
leg6->addBox(-15, -1, -1, 16, 2, 2, g); // Leg2
leg6->setPos(-4, static_cast<float>(0 + yo), -1);
leg6->setPos(-4, (float)(0+yo), -1);
leg7 = new ModelPart(this, 18, 0);
leg7->addBox(-1, -1, -1, 16, 2, 2, g); // Leg3
leg7->setPos(4, static_cast<float>(0 + yo), -1);
leg7->setPos(4, (float)(0+yo), -1);
// 4J added - compile now to avoid random performance hit first time cubes are rendered
head->compile(1.0f/16.0f);