summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobojumper <robojumper@gmail.com>2025-07-06 23:55:57 +0200
committerrobojumper <robojumper@gmail.com>2025-09-13 10:59:41 +0200
commitf50222e997df9b8f4e7511fda7b2cac9b7a7edb9 (patch)
tree0dfce3f16d776d5df14683d40f6b48bda621870d /src
parent73f1060a165633a631a15968011b67598ca9ba71 (diff)
Fix one regswap
Diffstat (limited to 'src')
-rw-r--r--src/d/snd/d_snd_bgm_mgr.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/d/snd/d_snd_bgm_mgr.cpp b/src/d/snd/d_snd_bgm_mgr.cpp
index 325a71bb..dcfcb3ac 100644
--- a/src/d/snd/d_snd_bgm_mgr.cpp
+++ b/src/d/snd/d_snd_bgm_mgr.cpp
@@ -1,8 +1,8 @@
#include "d/snd/d_snd_bgm_mgr.h"
#include "common.h"
-#include "d/snd/d_snd_bgm_sound.h"
#include "d/snd/d_snd_bgm_sound battle.h"
+#include "d/snd/d_snd_bgm_sound.h"
#include "d/snd/d_snd_mgr.h"
#include "d/snd/d_snd_player_mgr.h"
#include "d/snd/d_snd_sound.h"
@@ -77,10 +77,7 @@ dSndBgmMgr_c::dSndBgmMgr_c()
}
void dSndBgmMgr_c::calcLists() {
- // TODO Regswap
- dSndBgmSound_c *snd;
-
- snd = getActiveBgmSound();
+ dSndBgmSound_c *snd = getActiveBgmSound_i();
if (snd != nullptr) {
if (snd != mpPrevActiveBgmSound) {
snd->onBecomeActive();
@@ -88,8 +85,7 @@ void dSndBgmMgr_c::calcLists() {
snd->applyVars();
}
mpPrevActiveBgmSound = snd;
-
-
+
dSndBgmSound_c *next, *it;
for (it = getFirstInBgmSoundList(BGM_LIST_PLAYING); it != nullptr; it = next) {
next = getNextInBgmSoundList(BGM_LIST_PLAYING, it);