mirror of https://github.com/AxioDL/metaforce.git
CPauseScreenBase: Mark colors as constexpr within UpdateSideTable()
Same behavior, but allows eliding construction at runtime.
This commit is contained in:
parent
f7fdbc07ba
commit
6e921e3258
|
@ -252,11 +252,12 @@ void CPauseScreenBase::ChangeMode(EMode mode, bool playSfx) {
|
|||
}
|
||||
|
||||
void CPauseScreenBase::UpdateSideTable(CGuiTableGroup* table) {
|
||||
if (!table)
|
||||
if (!table) {
|
||||
return;
|
||||
}
|
||||
|
||||
zeus::CColor selColor = zeus::skWhite;
|
||||
zeus::CColor deselColor = {1.f, 1.f, 1.f, 0.5f};
|
||||
constexpr zeus::CColor selColor = zeus::skWhite;
|
||||
constexpr zeus::CColor deselColor = {1.f, 1.f, 1.f, 0.5f};
|
||||
|
||||
bool tableActive = true;
|
||||
if (table == x84_tablegroup_rightlog && x10_mode != EMode::RightTable)
|
||||
|
|
Loading…
Reference in New Issue