MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xClimateInit

Function xClimateInit

src/SB/Core/x/xClimate.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void xClimateInit(_tagClimate* climate)
30{
31 climate->rain.strength = 0.0f;
32
33 climate->rain.rain_emitter = zParEmitterFind(xStrHash("PAREMIT_RAIN"));
34 climate->rain.rain_emitter->emit_flags &= 0xfe;
35
36 climate->rain.snow_emitter = zParEmitterFind(xStrHash("PAREMIT_SNOW"));
37 climate->rain.snow_emitter->emit_flags &= 0xfe;
38}
39
40// Equivalent
41// float ops are being optimized more aggressively

Callers 1

zSceneInitFunction · 0.85

Calls 2

xStrHashFunction · 0.70
zParEmitterFindFunction · 0.50

Tested by

no test coverage detected