1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: request.C,v 1.12 2006/08/29 08:01:38 root Exp $"; |
3 | * "$Id: request.C,v 1.13 2006/09/03 00:18:43 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
594 | * again. |
594 | * again. |
595 | */ |
595 | */ |
596 | if ((!FindSmooth (face, &smoothface)) && |
596 | if ((!FindSmooth (face, &smoothface)) && |
597 | (!FindSmooth ( smooth_face->number, &smoothface))) { |
597 | (!FindSmooth ( smooth_face->number, &smoothface))) { |
598 | |
598 | |
599 | LOG(llevError,"could not findsmooth for %d. Neither default (%s)\n",face,smooth_face->name); |
599 | LOG(llevError,"could not findsmooth for %d. Neither default (%s)\n", face, &smooth_face->name); |
600 | ns->faces_sent[face] |= NS_FACESENT_SMOOTH; |
600 | ns->faces_sent[face] |= NS_FACESENT_SMOOTH; |
601 | return; |
601 | return; |
602 | } |
602 | } |
603 | |
603 | |
604 | if (!(ns->faces_sent[smoothface] & NS_FACESENT_FACE)) |
604 | if (!(ns->faces_sent[smoothface] & NS_FACESENT_FACE)) |
… | |
… | |
2117 | |
2117 | |
2118 | sl.buf = (unsigned char*) malloc(MAXSOCKBUF); |
2118 | sl.buf = (unsigned char*) malloc(MAXSOCKBUF); |
2119 | strcpy((char*)sl.buf,"replyinfo skill_info\n"); |
2119 | strcpy((char*)sl.buf,"replyinfo skill_info\n"); |
2120 | for (i=1; i< NUM_SKILLS; i++) { |
2120 | for (i=1; i< NUM_SKILLS; i++) { |
2121 | sprintf((char*)sl.buf + strlen((char*)sl.buf), "%d:%s\n", i + CS_STAT_SKILLINFO, |
2121 | sprintf((char*)sl.buf + strlen((char*)sl.buf), "%d:%s\n", i + CS_STAT_SKILLINFO, |
2122 | skill_names[i]); |
2122 | &skill_names[i]); |
2123 | } |
2123 | } |
2124 | sl.len = strlen((char*)sl.buf); |
2124 | sl.len = strlen((char*)sl.buf); |
2125 | if (sl.len >= MAXSOCKBUF) { |
2125 | if (sl.len >= MAXSOCKBUF) { |
2126 | LOG(llevError,"Buffer overflow in send_skill_info!\n"); |
2126 | LOG(llevError,"Buffer overflow in send_skill_info!\n"); |
2127 | fatal(0); |
2127 | fatal(0); |