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

Function zSceneLeavingLevel

src/SB/Game/zScene.cpp:3371–3383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3369}
3370
3371U32 zSceneLeavingLevel()
3372{
3373 // non-matching: instruction order
3374
3375 char curScene[4] = "";
3376 char nextScene[4] = "";
3377
3378 strncpy(curScene, xStrupr(xUtil_idtag2string(globals.sceneCur->sceneID, 0)), 4);
3379 strncpy(nextScene,
3380 xStrupr(xUtil_idtag2string(globals.sceneCur->pendingPortal->passet->sceneID, 0)), 4);
3381
3382 return (curScene[0] != nextScene[3]);
3383}
3384
3385const char* zSceneGetLevelName(U32 sceneID)
3386{

Callers 1

zSceneSwitchFunction · 0.85

Calls 3

strncpyFunction · 0.85
xStruprFunction · 0.50
xUtil_idtag2stringFunction · 0.50

Tested by

no test coverage detected