version 1.5 | | version 1.6 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: init.c,v 1.5 2000/11/24 21:18:02 mids Exp $"; | | * "$Id: init.c,v 1.6 2001/01/24 05:01:37 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
*/ | | */ |
ns->inbuf.len=0; | | ns->inbuf.len=0; |
ns->inbuf.buf=malloc(MAXSOCKBUF); | | ns->inbuf.buf=malloc(MAXSOCKBUF); |
| | /* Basic initialization. Needed because we do a check in |
| | * HandleClient for oldsocketmode without checking the |
| | * length of data. |
| | */ |
| | ns->inbuf.buf[0] = 0; |
memset(&ns->lastmap,0,sizeof(struct Map)); | | memset(&ns->lastmap,0,sizeof(struct Map)); |
memset(&ns->faces_sent,0,sizeof(ns->faces_sent)); | | memset(&ns->faces_sent,0,sizeof(ns->faces_sent)); |
memset(&ns->anims_sent,0,sizeof(ns->anims_sent)); | | memset(&ns->anims_sent,0,sizeof(ns->anims_sent)); |