--- deliantra/server/include/client.h 2007/07/01 05:00:18 1.59 +++ deliantra/server/include/client.h 2007/07/23 21:02:50 1.62 @@ -157,7 +157,7 @@ bool ACC (RW, newmapcmd); /* Send newmap command when entering new map SMACFIGGEN */ bool ACC (RW, plugincmd); // extend the protocol through a plug-in */ bool ACC (RW, mapinfocmd); // return map info and send map change info - bool ACC (RW, extcmd); // call into extensions/plugins + uint8_t ACC (RW, extcmd); // call into extensions/plugins bool ACC (RW, extmap); // extend map comamnd with extra data bool ACC (RW, buggy_mapscroll); // client crashes on large mapscrolls bool ACC (RW, darkness); /* True if client wants darkness information */ @@ -192,6 +192,7 @@ tstamp ACC (RW, last_send); // last data send on socket. int ACC (RW, rtt), ACC (RW, rttvar); /* round-trip time and -variance, if known */ + int ACC (RW, outq); // current socket outq length, or 0 if indeterminable int ACC (RW, rate_avail); // current rate balance int ACC (RW, max_rate); // max. # of bytes to send per tick @@ -261,6 +262,16 @@ void send_packet (packet &sl); void send_drawinfo (const char *msg, int flags = NDI_BLACK); + + MTH bool must_send_face (faceidx facenum) + { + if (faces_sent[facenum]) + return false; + + faces_sent[facenum] = true; + return true; + } + MTH void send_face (faceidx facenum); MTH void send_image (faceidx facenum); MTH void send_faces (object *ob);