version 1.20 | | version 1.21 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.20 2001/07/20 06:04:23 mwedel Exp $"; | | * "$Id: request.c,v 1.21 2001/07/22 18:48:47 smacfiggen Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* if beyond this size, need to use map1cmd no matter what */ | | /* if beyond this size, need to use map1cmd no matter what */ |
if (ns->mapx>11 || ns->mapy>11) ns->map1cmd=1; | | if (ns->mapx>11 || ns->mapy>11) ns->map1cmd=1; |
strcat(cmdback, ns->map1cmd?"1":"0"); | | strcat(cmdback, ns->map1cmd?"1":"0"); |
| | } else if (!strcmp(cmd,"newmapcmd")) { |
| | ns->newmapcmd= atoi(param); |
| | strcat(cmdback, param); |
} 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; |
| | |
draw_client_map(pl->ob); | | draw_client_map(pl->ob); |
} | | } |
| | |
| | void MapNewmapCmd( player *pl) |
| | { |
| | if( pl->socket.newmapcmd == 1) |
| | Write_String_To_Socket( &pl->socket, "newmap", 6); |
| | } |
| | |
| | |
/* client has requested pixmap that it somehow missed getting | | /* client has requested pixmap that it somehow missed getting |
* This will be called often if the client is | | * This will be called often if the client is |