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

Function getxmapbynick

source/src/worldio.cpp:1437–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1435}
1436
1437xmap *getxmapbynick(const char *nick, int *index = NULL, bool errmsg = true)
1438{
1439 if(*nick) loopvrev(xmaps)
1440 {
1441 if(!strcmp(nick, xmaps[i]->nick))
1442 {
1443 if(index) *index = i;
1444 return xmaps[i];
1445 }
1446 }
1447 if(errmsg) conoutf("xmap \"%s\" not found", nick);
1448 return NULL;
1449}
1450
1451COMMANDF(xmap_list, "", () // list xmaps (and status)
1452{

Callers 2

worldio.cppFile · 0.85
restorexmapFunction · 0.85

Calls 2

loopvrevFunction · 0.70
conoutfFunction · 0.70

Tested by

no test coverage detected