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

Function CalcRecipBlendMax

src/SB/Core/x/xAnim.cpp:376–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376float CalcRecipBlendMax(U16* arg0)
377{
378 float max = 0.0f;
379 while (arg0[0] != 0xFFFF)
380 {
381 float f3;
382 if (arg0[1] == 0)
383 {
384 f3 = 0.0f;
385 }
386 else
387 {
388 f3 = 1.0f / (0.0009765625f * arg0[1]);
389 }
390
391 f3 = 0.001f * arg0[0] + f3;
392 if (f3 > max)
393 {
394 max = f3;
395 }
396 arg0 += 2;
397 }
398
399 if (max == 0.0f)
400 {
401 return 0.0f;
402 }
403 return 1.0f / max;
404}
405
406static U32 StateHasTransition(xAnimState* state, xAnimTransition* tran)
407{

Callers 2

xAnimTableNewStateFunction · 0.85
xAnimTableNewTransitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected