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

Function isRewardPickup

src/SB/Game/zEntPickup.cpp:230–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230U32 isRewardPickup(zEntPickup* ent)
231{
232 char name[512];
233
234 for (S32 i = 0; i < 50; i++)
235 {
236 sprintf(name, "%s%02d", "boot_reward_pickup", i);
237
238 if (ent->id == xStrHash(name))
239 {
240 return 1;
241 }
242 }
243
244 return 0;
245}
246
247void zEntPickup_Startup()
248{

Callers 3

collectPickupFunction · 0.85
zEntPickup_ResetFunction · 0.85
zEntPickup_FlushGrabbedFunction · 0.85

Calls 2

sprintfFunction · 0.85
xStrHashFunction · 0.50

Tested by

no test coverage detected