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

Method BUpdate

src/SB/Game/zNPCTypeAmbient.cpp:361–390  ·  view source on GitHub ↗

Non-match

Source from the content-addressed store, hash-verified

359 {
360 r31 = 11;
361 break;
362 }
363 default: // c4
364 {
365 r8 = this->zNPCAmbient::AnimPick(animID, gspot, goal);
366 break;
367 }
368 }
369
370 if (r31 >= 0)
371 {
372 r8 = g_hash_ambianim[r31];
373 }
374
375 return r8;
376}
377
378// Non-match
379void zNPCJelly::BUpdate(xVec3*)
380{
381 xVec3 pos_bnd;
382 static const xVec3 vec_offset = { 0.0f, 0.0f, 0.0f };
383
384 xVec3* pos = (xVec3*)this->zNPCCommon::BonePos(2);
385
386 // Not sure about this.
387 // zNPCCommon::BonePos is not in DWARF.
388 // The decompiled code looks like it returns a vec3
389 // So I assumed that was its return type
390 // and this code looks like it's using the x,y,z of that
391 // but for some reason the compiler generated lwz instead of lfs
392 // and stw instead of stfs
393 pos_bnd.x = pos->x;

Callers

nothing calls this directly

Calls 3

zGridUpdateEntFunction · 0.70
xMat3x3LMulVecFunction · 0.50
xQuickCullForBoundFunction · 0.50

Tested by

no test coverage detected