mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 15:07:43 +00:00
Runtime/World: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -27,14 +27,17 @@ CScriptSound::CScriptSound(TUniqueId uid, std::string_view name, const CEntityIn
|
||||
, x112_prio(s16(prio))
|
||||
, x114_pan(pan / 64.f - 1.f)
|
||||
, x116_(w6)
|
||||
, x118_pitch(pitch / 8192.f) {
|
||||
x11c_25_looped = looped;
|
||||
x11c_26_nonEmitter = nonEmitter;
|
||||
x11c_27_autoStart = autoStart;
|
||||
x11c_28_occlusionTest = occlusionTest;
|
||||
x11c_29_acoustics = acoustics;
|
||||
x11c_30_worldSfx = worldSfx;
|
||||
x11d_24_allowDuplicates = allowDuplicates;
|
||||
, x118_pitch(pitch / 8192.f)
|
||||
, x11c_24_playRequested(false)
|
||||
, x11c_25_looped(looped)
|
||||
, x11c_26_nonEmitter(nonEmitter)
|
||||
, x11c_27_autoStart(autoStart)
|
||||
, x11c_28_occlusionTest(occlusionTest)
|
||||
, x11c_29_acoustics(acoustics)
|
||||
, x11c_30_worldSfx(worldSfx)
|
||||
, x11c_31_selfFree(false)
|
||||
, x11d_24_allowDuplicates(allowDuplicates)
|
||||
, x11d_25_processedThisFrame(false) {
|
||||
if (x11c_30_worldSfx && (!x11c_26_nonEmitter || !x11c_25_looped))
|
||||
x11c_30_worldSfx = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user