MCPcopy Create free account
hub / github.com/assaultcube/AC / IsInGame

Function IsInGame

source/src/bot/bot_util.cpp:462–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462bool IsInGame(dynent *d)
463{
464 if (!d) return false;
465
466 if (d->type==ENT_BOT)
467 {
468 loopv(bots)
469 {
470 if (bots[i] == d)
471 return true;
472 }
473 }
474 else
475 {
476 if (d == player1)
477 return true;
478 }
479 return false;
480}

Callers 2

FindEnemyMethod · 0.85
CheckHuntMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected