diff options
| author | robojumper <robojumper@gmail.com> | 2025-11-22 15:43:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-22 15:43:26 +0100 |
| commit | b661da78b52958faffb589955df0453c5b0f6740 (patch) | |
| tree | 20ef8223571890b3b015aee11e227fb9a3ef0077 /src/d/lyt/msg_window/d_lyt_msg_window_get.cpp | |
| parent | 25c799aef9a58395d1a2e2cd573defce7fc5f34f (diff) | |
| parent | 9cae4869105d4b891f4d483f9bddd146e93eb989 (diff) | |
Merge pull request #257 from robojumper/d_lyt_map_more
some more map things
Diffstat (limited to 'src/d/lyt/msg_window/d_lyt_msg_window_get.cpp')
| -rw-r--r-- | src/d/lyt/msg_window/d_lyt_msg_window_get.cpp | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/d/lyt/msg_window/d_lyt_msg_window_get.cpp b/src/d/lyt/msg_window/d_lyt_msg_window_get.cpp index c878dab5..2c11626a 100644 --- a/src/d/lyt/msg_window/d_lyt_msg_window_get.cpp +++ b/src/d/lyt/msg_window/d_lyt_msg_window_get.cpp @@ -176,18 +176,9 @@ bool dLytMsgWindowGet_c::execute() { } void dLytMsgWindowGet_c::draw() { - // NONMATCHING - // The instruction patterns here are the same that EGG::StateGX::Scoped - // generates, but there's no RAII to be found here. What's the missing - // link that makes the compiler generate these? - // When you fix this, fix other instances of this problem - // by searching for 91657b77 - bool bVis[5] = { - mpPanes[0]->IsVisible(), - mpPanes[1]->IsVisible(), - mpPanes[2]->IsVisible(), - mpPanes[3]->IsVisible(), - mpPanes[4]->IsVisible(), + bool bVis[5]; + for (int i = 0; i < 5; ++i) { + bVis[i] = mpPanes[i]->IsVisible(); }; mpPanes[0]->SetVisible(bVis[0]); @@ -207,11 +198,9 @@ void dLytMsgWindowGet_c::draw() { mLyt.draw(); - mpPanes[0]->SetVisible(bVis[0]); - mpPanes[1]->SetVisible(bVis[1]); - mpPanes[2]->SetVisible(bVis[2]); - mpPanes[3]->SetVisible(bVis[3]); - mpPanes[4]->SetVisible(bVis[4]); + for (int i = 0; i < 5; ++i) { + mpPanes[i]->SetVisible(bVis[i]); + }; } void dLytMsgWindowGet_c::open(dAcObjBase_c *obj, u32 param) { |
