Restore translation-unit ownership and publish verified source corrections

Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas.

449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
This commit is contained in:
ragnarok-clanker 2026-10-25 15:42:21 +00:00
commit e168b4e4a6
326 changed files with 9538 additions and 3481 deletions

View file

@ -13,11 +13,13 @@ namespace {
float values[4][3]{};
};
// INLINED
float InverseLength(float squared) {
const float length = std::sqrt(squared);
return 1.0f / length;
}
// INLINED
void Normalize(float* vector, bool yFirst) {
const float first = yFirst ? vector[1] * vector[1] + vector[0] * vector[0] : vector[0] * vector[0] + vector[1] * vector[1];
const float inverse = InverseLength(first + vector[2] * vector[2]);
@ -26,12 +28,14 @@ namespace {
vector[2] = inverse * vector[2];
}
// INLINED
void Add(float* result, const float* value) {
result[0] = result[0] + value[0];
result[1] = result[1] + value[1];
result[2] = result[2] + value[2];
}
// INLINED
std::uint32_t
LitColor(const float* normal, bool normalize, bool side, const float* direction, const float* diffuse, const float* ambient, const GroundQuad* source) {
float vector[3] = {normal[0], normal[1], normal[2]};
@ -64,8 +68,7 @@ namespace {
GroundGeometry::GroundGeometry() : cellSize(10.0f), loaded(0) {
}
// OFFSET: 0x00ABDD80
// FUNCTION: fn_17554
// INLINED
GroundGeometry::~GroundGeometry() {
this->ClearLightmaps();
}