version 1.13 | | version 1.14 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.13 2001/06/04 06:41:02 mwedel Exp $"; | | * "$Id: request.c,v 1.14 2001/06/08 06:21:34 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
else if (!strcmp(cmd,"sexp")) { | | else if (!strcmp(cmd,"sexp")) { |
ns->skillexp = atoi(param); | | ns->skillexp = atoi(param); |
strcat(cmdback, param); | | strcat(cmdback, param); |
| | } else if (!strcmp(cmd,"map1cmd")) { |
| | ns->map1cmd = atoi(param); |
| | /* if beyond this size, need to use map1cmd no matter what */ |
| | if (ns->mapx>11 || ns->mapy>11) ns->map1cmd=1; |
| | strcat(cmdback, ns->map1cmd?"1":"0"); |
} else if (!strcmp(cmd,"mapsize")) { | | } else if (!strcmp(cmd,"mapsize")) { |
int x, y=0; | | int x, y=0; |
char tmpbuf[MAX_BUF], *cp; | | char tmpbuf[MAX_BUF], *cp; |
| | |
*/ | | */ |
sprintf(tmpbuf,"%dx%d", x,y); | | sprintf(tmpbuf,"%dx%d", x,y); |
strcat(cmdback, tmpbuf); | | strcat(cmdback, tmpbuf); |
| | /* If beyond this size, will use map1cmd */ |
| | if (x>11 || y>11) ns->map1cmd=1; |
} | | } |
} else { | | } else { |
/* Didn't get a setup command we understood - | | /* Didn't get a setup command we understood - |
| | |
if (pl->map->in_memory!=MAP_IN_MEMORY) return; | | if (pl->map->in_memory!=MAP_IN_MEMORY) return; |
memset(&newmap, 0, sizeof(struct Map)); | | memset(&newmap, 0, sizeof(struct Map)); |
| | |
if (pl->contr->socket.mapx > 15 || pl->contr->socket.mapy > 15) { | | if (pl->contr->socket.map1cmd) { |
/* Big maps need a different drawing mechanism to work */ | | /* Big maps need a different drawing mechanism to work */ |
draw_client_map1(pl); | | draw_client_map1(pl); |
return; | | return; |