diff options
| author | robojumper <robojumper@gmail.com> | 2025-04-02 00:29:45 +0200 |
|---|---|---|
| committer | robojumper <robojumper@gmail.com> | 2025-04-07 22:12:36 +0200 |
| commit | a337ae752a4aa67b423baee3d28fb6ae9a28c5be (patch) | |
| tree | 3074f09f979bb045909b79112027926a1b4be831 /src/d | |
| parent | a4ff5b11f771e9375fc8fed3f5b492423a68529b (diff) | |
Fix variable ownership
Diffstat (limited to 'src/d')
| -rw-r--r-- | src/d/lyt/msg_window/d_lyt_msg_window_wood.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/d/lyt/msg_window/d_lyt_msg_window_wood.cpp b/src/d/lyt/msg_window/d_lyt_msg_window_wood.cpp index 2727e7cf..765a0e0b 100644 --- a/src/d/lyt/msg_window/d_lyt_msg_window_wood.cpp +++ b/src/d/lyt/msg_window/d_lyt_msg_window_wood.cpp @@ -110,7 +110,7 @@ void dLytMsgWindowWood_c::initializeState_Invisible() { mCommon.resetToInvisble(); } void dLytMsgWindowWood_c::executeState_Invisible() { - if (mCommon.shouldBeOpen()) { + if (mShouldBeOpen) { mStateMgr.changeState(StateID_In); } } @@ -130,7 +130,7 @@ void dLytMsgWindowWood_c::finalizeState_In() {} void dLytMsgWindowWood_c::initializeState_Visible() {} void dLytMsgWindowWood_c::executeState_Visible() { - if (!mCommon.shouldBeOpen()) { + if (!mShouldBeOpen) { mStateMgr.changeState(StateID_Out); } } @@ -166,19 +166,19 @@ void dLytMsgWindowWood_c::draw() { mLyt.draw(); } -void dLytMsgWindowWood_c::vt_0x1C() { - mCommon.openMaybe(); +void dLytMsgWindowWood_c::open() { + mShouldBeOpen = true; } -bool dLytMsgWindowWood_c::vt_0x20() const { +bool dLytMsgWindowWood_c::isOpening() const { return !(*mStateMgr.getStateID() == StateID_In); } -void dLytMsgWindowWood_c::vt_0x24() { - mCommon.closeMaybe(); +void dLytMsgWindowWood_c::close() { + mShouldBeOpen = false; } -bool dLytMsgWindowWood_c::vt_0x28() const { +bool dLytMsgWindowWood_c::isClosing() const { return !(*mStateMgr.getStateID() == StateID_Out); } |
