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

Method AddSpawnPoint

src/SB/Game/zNPCSpawner.cpp:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90S32 zNPCSpawner::AddSpawnPoint(zMovePoint* sp)
91{
92 S32 ack = 0;
93 for (S32 i = 0; i < 0x10; i++)
94 {
95 SMSPStatus* sp_stat = &this->sppool[i];
96 if (sp_stat->sp == NULL)
97 {
98 sp_stat->sp = sp;
99 sp_stat->npc_prefer = NULL;
100 ack = 1;
101 break;
102 }
103 }
104 return ack;
105}
106
107S32 zNPCSpawner::AddSpawnNPC(zNPCCommon* npc)
108{

Callers 1

ParseChildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected