diff options
| author | Léo Lam <leo@leolam.fr> | 2020-08-20 00:03:13 +0200 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2020-08-20 00:03:13 +0200 |
| commit | 6989d0f7f833179130f43f5b7d6cf4c00cd52ece (patch) | |
| tree | b59d8977afab2d65427823ebae3dde27adb221bd /src/KingSystem/ActorSystem/actBaseProc.cpp | |
| parent | 50a8a8c5e32bd582983acc239fce1935abd10d6d (diff) | |
ksys/act: Get rid of some setDirect() calls
Diffstat (limited to 'src/KingSystem/ActorSystem/actBaseProc.cpp')
| -rw-r--r-- | src/KingSystem/ActorSystem/actBaseProc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/KingSystem/ActorSystem/actBaseProc.cpp b/src/KingSystem/ActorSystem/actBaseProc.cpp index 0e4cd1b4..aef2365f 100644 --- a/src/KingSystem/ActorSystem/actBaseProc.cpp +++ b/src/KingSystem/ActorSystem/actBaseProc.cpp @@ -206,7 +206,7 @@ bool BaseProc::processStateUpdate(u8 counter) { return true; } // Try the deletion again later. - mStateFlags.setDirect(StateFlags::RequestDelete); + mStateFlags = StateFlags::RequestDelete; return false; } @@ -220,7 +220,7 @@ bool BaseProc::processStateUpdate(u8 counter) { if (shouldClearStateFlag4000_()) new_flags.makeAllZero(); else - new_flags.setDirect(StateFlags::_4000); + new_flags = StateFlags::_4000; } else { new_flags.makeAllZero(); } @@ -263,7 +263,7 @@ bool BaseProc::processStateUpdate(u8 counter) { if (mStateFlags.isOn(StateFlags::RequestDelete)) { new_flags.set(StateFlags::RequestDelete); - mStateFlags.setDirect(new_flags.getDirect()); + mStateFlags = new_flags; return false; } |
