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:
parent
9b0695dad9
commit
bdb89e3e2a
1 changed files with 6 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue