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

Function zSceneObjHashtableAdd

src/SB/Game/zScene.cpp:3211–3236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3209}
3210
3211static void zSceneObjHashtableAdd(U32 id, xBase* base)
3212{
3213 S32 k, chkd;
3214
3215 chkd = id & (scobj_size - 1);
3216
3217 for (k = 0; k < scobj_size; k++)
3218 {
3219 IDBasePair* idbp = &scobj_idbps[chkd];
3220
3221 if (idbp->id == 0)
3222 {
3223 idbp->id = id;
3224 idbp->base = base;
3225 nidbps++;
3226 break;
3227 }
3228
3229 chkd++;
3230
3231 if (chkd == scobj_size)
3232 {
3233 chkd = 0;
3234 }
3235 }
3236}
3237
3238static xBase* zSceneObjHashtableGet(U32 id)
3239{

Callers 11

init_dynamic_typeFunction · 0.70
zSceneInitFunc_DefaultFunction · 0.70
zSceneInitFunc_MovePointFunction · 0.70
zSceneInitFunc_SBNPCFunction · 0.70
zSceneInitFunc_PlayerFunction · 0.70
zSceneInitFunc_CameraFunction · 0.70
zSceneInitFunc_SurfaceFunction · 0.70
zSceneInitFunc_GustFunction · 0.70
zSceneInitFunc_VolumeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected