MCPcopy Create free account
hub / github.com/ddnet/ddnet / ReleaseHooked

Method ReleaseHooked

src/game/server/gameworld.cpp:383–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383void CGameWorld::ReleaseHooked(int ClientId)
384{
385 CCharacter *pChr = (CCharacter *)FindFirst(CGameWorld::ENTTYPE_CHARACTER);
386 for(; pChr; pChr = (CCharacter *)pChr->TypeNext())
387 {
388 if(pChr->Core()->HookedPlayer() == ClientId && !pChr->IsSuper())
389 {
390 pChr->ReleaseHook();
391 }
392 }
393}

Callers 2

HandleTilesMethod · 0.45
PauseMethod · 0.45

Calls 5

HookedPlayerMethod · 0.80
TypeNextMethod · 0.45
CoreMethod · 0.45
IsSuperMethod · 0.45
ReleaseHookMethod · 0.45

Tested by

no test coverage detected