Fix oversized repair drone (RECOV0-0) model scale

This commit is contained in:
Luxferre committed 2026-12-01 14:26:56 +02:00
1 parent fc76e447fe
commit 3b4fbe76af
3 files changed
+10 -1

No files matched your search

+7
View File
@@ -4,6 +4,7 @@
#include "assets/sprites.hpp"
#include "core/vfs.hpp"
#include "render/world_geometry.hpp"
#include "sim/vehicle_defs.hpp"
#include <cmath>
#include <iostream>
@@ -174,6 +175,12 @@ int main() {
render::ModelGeometry mg = render::build_model_geometry(mesh, pal);
CHECK(!mg.verts.empty());
CHECK(mg.indices.size() == mesh.triangles.size() * 3u);
if (std::string(k) == "RECOV0-0") {
Vec3 scaled = (mesh.bounds_max - mesh.bounds_min) * sim::kRecoveryVisualScale;
CHECK(scaled.x >= 0.5f && scaled.x <= 2.5f);
CHECK(scaled.y >= 0.5f && scaled.y <= 2.5f);
CHECK(scaled.z >= 0.5f && scaled.z <= 2.5f);
}
}
std::cout << "[PASS] All 9 Levels & Vehicle 3D Render Geometry validated\n";