MCPcopy Create free account
hub / github.com/assaultcube/AC / ~servermap

Method ~servermap

source/src/serverfiles.h:106–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105 servermap(const char *mname, const char *mpath) { memset(&fname, 0, sizeof(struct servermap)); fname = newstring(mname); fpath = mpath; }
106 ~servermap() { delstring(fname); DELETEA(cgzraw); DELETEA(cfgrawgz); DELETEA(enttypes); DELETEA(entpos_x); DELETEA(entpos_y); DELETEA(layoutgz); DELETEA(hx_modeinfo); DELETEA(hx_mapartist); }
107
108 bool isro() { return fpath == servermappath_off || fpath == servermappath_serv; }
109 bool isofficial() { return fpath == servermappath_off; }

Callers

nothing calls this directly

Calls 1

delstringFunction · 0.85

Tested by

no test coverage detected