1 | /* |
1 | /* |
2 | * static char *rcsid_init_c = |
2 | * static char *rcsid_init_c = |
3 | * "$Id: request.c,v 1.5 2006/04/17 06:11:41 root Exp $"; |
3 | * "$Id: request.c,v 1.7 2006/04/21 05:13:28 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 | |
… | |
… | |
586 | short packet; |
586 | short packet; |
587 | char command[MAX_BUF]; |
587 | char command[MAX_BUF]; |
588 | SockList sl; |
588 | SockList sl; |
589 | |
589 | |
590 | if (len < 7) { |
590 | if (len < 7) { |
591 | LOG(llevDebug,"Corrupt ncom command - not long enough - discarding\n"); |
591 | LOG(llevDebug,"Corrupt ncom command <%s> not long enough - discarding\n", buf); |
592 | return; |
592 | return; |
593 | } |
593 | } |
594 | |
594 | |
595 | packet = GetShort_String(buf); |
595 | packet = GetShort_String(buf); |
596 | repeat = GetInt_String(buf+2); |
596 | repeat = GetInt_String(buf+2); |
… | |
… | |
787 | { |
787 | { |
788 | if( pl->socket.newmapcmd == 1) { |
788 | if( pl->socket.newmapcmd == 1) { |
789 | memset(&pl->socket.lastmap, 0, sizeof(pl->socket.lastmap)); |
789 | memset(&pl->socket.lastmap, 0, sizeof(pl->socket.lastmap)); |
790 | Write_String_To_Socket( &pl->socket, "newmap", 6); |
790 | Write_String_To_Socket( &pl->socket, "newmap", 6); |
791 | } |
791 | } |
|
|
792 | pl->socket.current_map = 0; |
792 | } |
793 | } |
793 | |
794 | |
794 | |
795 | |
795 | |
796 | |
796 | /** |
797 | /** |