MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / anyPlayers

Function anyPlayers

plugins/mapchange/mapchange.cpp:197–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197bool anyPlayers(void) {
198 bool moreThenZero = false;
199 bz_APIIntList* players = bz_getPlayerIndexList();
200 if (players->size()) {
201 moreThenZero = true;
202 }
203
204 bz_deleteIntList(players);
205
206 return moreThenZero;
207}
208
209BZ_GET_PLUGIN_VERSION
210

Callers 2

bz_LoadFunction · 0.85
processMethod · 0.85

Calls 3

bz_getPlayerIndexListFunction · 0.85
bz_deleteIntListFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected