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

Method init

source/src/server.cpp:48–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 int coop_cgzlen, coop_cfglen, coop_cfglengz;
47
48 void init()
49 {
50 mastermode = MM_OPEN;
51 autoteam = true;
52 matchteamsize = 0;
53 forceintermission = false;
54 custom_servdesc = false;
55 smode = 0;
56 interm = 0;
57 minremain = 0;
58 gamemillis = 0;
59 gamelimit = 0;
60 nextsendscore = 0;
61 arenaround = 0;
62 arenaroundstartmillis = 0;
63 lastfillup = 0;
64 sents.setsize(0);
65 loopi(2) sflaginfos[i].actor_cn = -1;
66 recordpackets = false;
67 demosequence = 0;
68 curmap = NULL;
69 layout = NULL;
70 coop_mapdata = NULL;
71 coop_cgzlen = coop_cfglen = coop_cfglengz = 0;
72 }
73
74 void free()
75 {

Callers 1

initserverFunction · 0.45

Calls 2

setsizeMethod · 0.80
loopiFunction · 0.70

Tested by

no test coverage detected