File: netrecycleobj.c

package info (click to toggle)
xshipwars 1.32-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,176 kB
  • ctags: 6,357
  • sloc: ansic: 157,152; makefile: 226; sh: 75
file content (35 lines) | stat: -rw-r--r-- 539 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "swserv.h"



int NetHandleRecycleObject(int condescriptor, char *arg) 
{
	return(0);
}


int NetSendRecycleObject(int condescriptor, long object_num)
{
        static char sndbuf[CS_DATA_MAX_LEN];


        if((object_num < 0) || (object_num >= MAX_OBJECTS))
            return(-1);


        /*
	 *	CS_CODE_RECYCLEOBJ format:
	 *
	 *	object_num
	 */
        sprintf(sndbuf,
		"%i %ld\n",

                CS_CODE_RECYCLEOBJ,
                object_num
        );
        NetDoSend(condescriptor, sndbuf);


        return(0);
}