Decomp fixes for CGameCubeDoll

This commit is contained in:
Henrique Gemignani Passos Lima 2022-11-14 04:21:08 +02:00
parent 0cd4794059
commit 4001bfe4a2
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 5 additions and 2 deletions

View File

@ -14,8 +14,10 @@ CGameCubeDoll::CGameCubeDoll() {
} }
void CGameCubeDoll::UpdateActorLights() { void CGameCubeDoll::UpdateActorLights() {
x8_lights[0] = CLight::BuildDirectional((zeus::skForward + zeus::skRight * 0.25f + zeus::skDown * 0.1f).normalized(), // Game calculates that and does nothing
zeus::skWhite); // (zeus::skForward + zeus::skRight * 0.25f + zeus::skDown * 0.1f).normalized();
x8_lights[0] = CLight::BuildDirectional(zeus::skForward, zeus::skWhite);
x18_actorLights->BuildFakeLightList(x8_lights, zeus::CColor(0.25f, 1.f)); x18_actorLights->BuildFakeLightList(x8_lights, zeus::CColor(0.25f, 1.f));
} }
@ -38,6 +40,7 @@ void CGameCubeDoll::Draw(float alpha) {
zeus::CTransform::Scale(0.2f)); zeus::CTransform::Scale(0.2f));
CModelFlags flags(5, 0, 3, zeus::CColor(1.f, alpha * x1c_fader)); CModelFlags flags(5, 0, 3, zeus::CColor(1.f, alpha * x1c_fader));
x0_model->Draw(flags); x0_model->Draw(flags);
CGraphics::DisableAllLights();
} }
void CGameCubeDoll::Touch() { void CGameCubeDoll::Touch() {