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

Function zUI_ScenePortalSetToCurrentLevel

src/SB/Game/zUI.cpp:1380–1397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1378}
1379
1380void zUI_ScenePortalSetToCurrentLevel(zScene* zsc)
1381{
1382 sCurrTaskDesc = NULL;
1383
1384 for (U32 i = 0; i < sizeof(sWorld) / sizeof(sWorld[0]); i++)
1385 {
1386 U32 curPrefix = (sWorld[i].worldPrefix[0] << 24) | (sWorld[i].worldPrefix[1] << 16);
1387 U32 scnPrefix = zsc->sceneID & ~0xffff;
1388
1389 if (curPrefix == scnPrefix)
1390 {
1391 sCurrWorld = i;
1392 break;
1393 }
1394 }
1395
1396 sCurrTask = 0;
1397}
1398
1399static void init_patsocks(zScene* zsc)
1400{

Callers 2

zSceneUpdateFunction · 0.70
zUI_ScenePortalInitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected