version 1.90 | | version 1.91 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.90 2006/05/18 05:27:44 mwedel Exp $"; | | * "$Id: request.c,v 1.91 2006/05/20 12:36:48 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} else if (!strcmp(cmd,"tick")) { | | } else if (!strcmp(cmd,"tick")) { |
ns->tick = atoi(param); | | ns->tick = atoi(param); |
safe_strcat(cmdback, param, &slen, HUGE_BUF); | | safe_strcat(cmdback, param, &slen, HUGE_BUF); |
| | } else if (!strcmp(cmd,"bot")) { |
| | ns->is_bot = ( atoi(param) != 0 ? 1 : 0 ); |
| | safe_strcat(cmdback, ns->is_bot ? "1" : "0", &slen, HUGE_BUF); |
} else { | | } else { |
/* Didn't get a setup command we understood - | | /* Didn't get a setup command we understood - |
* report a failure to the client. | | * report a failure to the client. |
| | |
void send_tick(player *pl) | | void send_tick(player *pl) |
{ | | { |
SockList sl; | | SockList sl; |
char buf[MAX_BUF]; | | |
int tmp; | | int tmp; |
| | |
| | |