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

Function newvotedisplayinfo

source/src/clientgame.cpp:1389–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1387}
1388
1389votedisplayinfo *newvotedisplayinfo(playerent *owner, int type, const char *arg1, const char *arg2, const char *arg3)
1390{
1391 if(type < 0 || type >= SA_NUM) return NULL;
1392 votedisplayinfo *v = new votedisplayinfo();
1393 v->owner = owner;
1394 v->type = type;
1395 v->millis = totalmillis + (30+10)*1000;
1396 char *votedesc = votestring(type, arg1, arg2, arg3);
1397 copystring(v->desc, votedesc);
1398 DELETEA(votedesc);
1399 return v;
1400}
1401
1402votedisplayinfo *curvote = NULL, *calledvote = NULL;
1403

Callers 2

parsemessagesFunction · 0.85
callvoteFunction · 0.85

Calls 2

votestringFunction · 0.85
copystringFunction · 0.85

Tested by

no test coverage detected