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

Function check_hide_entities

src/SB/Game/zCutsceneMgr.cpp:485–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void check_hide_entities()
486{
487 bool mgrNotNull = globals.cmgr;
488 if (mgrNotNull == ents_hidden)
489 {
490 return;
491 }
492 ents_hidden = mgrNotNull;
493
494 zScene* scene = globals.sceneCur;
495 zEnt** it = scene->ents;
496 zEnt** end = &it[scene->num_ents];
497 if (mgrNotNull)
498 {
499 while (it != end)
500 {
501 zEnt* ent = *it;
502 if (!(ent->baseFlags & 8) && ent->baseFlags & 0x20)
503 {
504 ent->flags = ent->flags | 0x80;
505 }
506 it++;
507 }
508 return;
509 }
510
511 while (it != end)
512 {
513 zEnt* ent = *it;
514 if (ent->baseFlags & 0x20)
515 {
516 ent->flags = ent->flags & 0x7f;
517 }
518 it++;
519 }
520}

Callers 1

zCutsceneMgrUpdateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected