… | |
… | |
33 | */ |
33 | */ |
34 | |
34 | |
35 | |
35 | |
36 | #include <global.h> |
36 | #include <global.h> |
37 | #include <object.h> /* LOOK_OBJ */ |
37 | #include <object.h> /* LOOK_OBJ */ |
38 | #include <newclient.h> |
|
|
39 | #include <newserver.h> |
|
|
40 | #include <sproto.h> |
38 | #include <sproto.h> |
41 | |
39 | |
42 | /** This is the maximum number of bytes we expect any one item to take up */ |
40 | /** This is the maximum number of bytes we expect any one item to take up */ |
43 | #define MAXITEMLEN 300 |
41 | #define MAXITEMLEN 300 |
44 | |
42 | |
… | |
… | |
114 | /* Used in the send_look to put object head into packet |
112 | /* Used in the send_look to put object head into packet |
115 | * sl for socket ns. Need socket to know if we need to send |
113 | * sl for socket ns. Need socket to know if we need to send |
116 | * animation of face to the client. |
114 | * animation of face to the client. |
117 | */ |
115 | */ |
118 | static void |
116 | static void |
119 | add_object_to_socklist (client_socket &ns, packet &sl, object *head) |
117 | add_object_to_socklist (client &ns, packet &sl, object *head) |
120 | { |
118 | { |
121 | int flags, len, anim_speed; |
119 | int flags, len, anim_speed; |
122 | char item_n[MAX_BUF]; |
120 | char item_n[MAX_BUF]; |
123 | const char *item_p; |
121 | const char *item_p; |
124 | |
122 | |