mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:47:43 +00:00
zeus constexpr refactor and thermal visor fixes
This commit is contained in:
@@ -180,12 +180,12 @@ void CHudThreatInterface::Update(float dt) {
|
||||
if (x68_textpane_threatwarning) {
|
||||
if (x4c_threatStatus != EThreatStatus::Normal) {
|
||||
x48_warningLerpAlpha = std::min(x48_warningLerpAlpha + 2.f * dt, 1.f);
|
||||
zeus::CColor color = zeus::CColor::skWhite;
|
||||
zeus::CColor color = zeus::skWhite;
|
||||
color.a() = x48_warningLerpAlpha * xc_damagePulse;
|
||||
x68_textpane_threatwarning->SetColor(color);
|
||||
} else {
|
||||
x48_warningLerpAlpha = std::max(0.f, x48_warningLerpAlpha - 2.f * dt);
|
||||
zeus::CColor color = zeus::CColor::skWhite;
|
||||
zeus::CColor color = zeus::skWhite;
|
||||
color.a() = x48_warningLerpAlpha * xc_damagePulse;
|
||||
x68_textpane_threatwarning->SetColor(color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user