2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

Runtime: Make const/non-const getters have the same name

Makes for a more consistent interface, as getters won't have different
names to remember based off whether or not they're const qualified.
This commit is contained in:
Lioncash
2019-08-14 10:58:54 -04:00
parent 6760f78568
commit afab3e0327
60 changed files with 284 additions and 284 deletions

View File

@@ -180,7 +180,7 @@ void CScriptSound::PlaySound(CStateManager& mgr) {
xec_sfxHandle = CSfxManager::SfxStart(x100_soundId, x10e_vol, x114_pan, x11c_29_acoustics, x112_prio,
x11c_25_looped, x11c_30_worldSfx ? kInvalidAreaId : GetAreaIdAlways());
if (x11c_30_worldSfx)
mgr.WorldNC()->AddGlobalSound(xec_sfxHandle);
mgr.GetWorld()->AddGlobalSound(xec_sfxHandle);
}
} else {
float occVol = x11c_28_occlusionTest ? GetOccludedVolumeAmount(GetTranslation(), mgr) : 1.f;
@@ -202,7 +202,7 @@ void CScriptSound::PlaySound(CStateManager& mgr) {
void CScriptSound::StopSound(CStateManager& mgr) {
x11c_24_playRequested = false;
if (x11c_30_worldSfx && x11c_26_nonEmitter) {
mgr.WorldNC()->StopGlobalSound(x100_soundId);
mgr.GetWorld()->StopGlobalSound(x100_soundId);
xec_sfxHandle.reset();
} else if (xec_sfxHandle) {
CSfxManager::RemoveEmitter(xec_sfxHandle);