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

Method Unlock

src/SB/Game/zNPCSupport.cpp:165–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165S32 NPCWidget::Unlock(const zNPCCommon* npc)
166{
167 if (npc_ownerlock == NULL)
168 {
169 return 1;
170 }
171 if (npc != npc_ownerlock)
172 {
173 return 0;
174 }
175 npc_ownerlock = NULL;
176 return 1;
177}
178
179S32 NPCWidget::NPCIsTheLocker(const zNPCCommon* npc)
180{

Callers 1

OffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected