Decompile fn_02078 (CRendererDX7::ClearWorld)

Batch #15430 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_02078 CRendererDX7::ClearWorld: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, Toshiro
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 00:13:00 +00:00
commit bdb89e3e2a

View file

@ -50,13 +50,13 @@ void CRendererDX7::ClearDepth(int clearColor) {
// OFFSET: 0x0055A240
// FUNCTION: fn_02078
void CRendererDX7::ClearWorld() {
unsigned color = this->clearColor;
if (this->fog.enabled != 0 && static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->backgroundFog == 1) {
color = this->BlendColor(this->clearColor, g_worldOverlayColor);
}
if (g_deviceOwnerDX7) {
g_deviceOwnerDX7->Clear(color);
const unsigned color = this->BlendColor(this->clearColor, g_worldOverlayColor);
if (g_deviceOwnerDX7) {
g_deviceOwnerDX7->Clear(color);
}
} else if (g_deviceOwnerDX7) {
g_deviceOwnerDX7->Clear(this->clearColor);
}
}