version 1.31 | | version 1.32 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: request.c,v 1.31 2001/12/16 03:31:03 mwedel Exp $"; | | * "$Id: request.c,v 1.32 2001/12/23 08:17:36 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
cs_write_string(&pl->contr->socket,buf,strlen(buf)); | | cs_write_string(&pl->contr->socket,buf,strlen(buf)); |
} | | } |
| | |
/* sends a mapstats cmd to the players client, after the player had entered the map. | | |
* Cmd sends map width / map height + mapinfo string. | | |
* TEST: x and y of the map entry. Perhaps we must stay with it. | | |
* Inside the mapinfo string can be all special tags used by magic mouth string. | | |
* This means in first place the media tags. Its used to set the background sound, | | |
* but it can also trigger a mpepg when ever included in CF. | | |
* The "real text part" of the string is the map name/location name. | | |
* Remember that we in the Editor, this all can be seperated in special parts | | |
* (like background sound settings, etc.). MT | | |
*/ | | |
void send_mapstats_cmd(object *op, mapstruct *map) | | |
{ | | |
char tmp[2024]; | | |
sprintf(tmp,"mapstats %d %d %d %d %s", map->width, map->height, op->x, op->y, map->name); | | |
Write_String_To_Socket(&op->contr->socket, tmp, strlen(tmp)); | | |
} | | |