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

Function writeallxmaps

source/src/worldio.cpp:1624–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1622}
1623
1624void writeallxmaps() // at game exit, write all xmaps to cubescript files in mapediting/xmaps
1625{
1626 if(!persistentxmaps) return;
1627 loopv(xmaps) writexmap(xmaps[i]);
1628 if(unsavededits) xmapbackup("gameend", "");
1629 if(bak) writexmap(bak, bakprefix);
1630}
1631
1632void loadxmap(const char *nick)
1633{

Callers 1

quitFunction · 0.85

Calls 3

writexmapFunction · 0.85
xmapbackupFunction · 0.85
loopvFunction · 0.70

Tested by

no test coverage detected