| 1387 | } |
| 1388 | |
| 1389 | votedisplayinfo *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 | |
| 1402 | votedisplayinfo *curvote = NULL, *calledvote = NULL; |
| 1403 |
no test coverage detected