--- deliantra/server/include/client.h 2007/03/12 01:13:10 1.33 +++ deliantra/server/include/client.h 2007/03/14 01:19:09 1.36 @@ -35,10 +35,10 @@ struct MapCell { UUID player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient - int count; /* This is really darkness in the map1 command */ faceidx faces[MAP_LAYERS]; - uint16 smooth[MAP_LAYERS]; - unsigned char stat_hp; // health of something in this space, or 0 + faceidx smooth[MAP_LAYERS]; + int count; /* This is really darkness in the map1 command */ + unsigned char stat_hp; // health of something in this space, or 0 unsigned char flags; }; @@ -195,6 +195,8 @@ bool ACC (RW, extcmd); /* CF+ call into extensions/plugins */ bool ACC (RW, extmap); /* CF+ extend map comamnd with extra data */ bool ACC (RW, buggy_mapscroll); /* CF+ client crashes on large mapscrolls */ + bool ACC (RW, force_face0); /* CF+ client workaround for buggy checksum calculation in gcfclient */ + bool ACC (RW, force_bad_checksum); /* CF+ client workaround for buggy checksum calculation in gcfclient */ bool ACC (RW, darkness); /* True if client wants darkness information */ bool ACC (RW, image2); /* Client wants image2/face2 commands */ bool ACC (RW, update_look); /* If true, we need to send the look window */ @@ -235,7 +237,8 @@ // large structures at the end please struct Map lastmap; std::bitset anims_sent; - uint8 ACC (RW, faces_sent[MAX_FACES]); // This is a bitmap on sent face status + std::bitset faces_sent; + // if we get an incomplete packet, this is used to hold the data. // we add 2 byte for the header, one for the trailing 0 byte uint8 inbuf[MAXSOCKBUF + 2 + 1]; @@ -263,6 +266,11 @@ void send_packet_printf (const char *format, ...); void send_packet (packet &sl); + void send_drawinfo (const char *msg, int flags = NDI_BLACK); + MTH void send_face (faceidx facenum, bool nocache = false); + MTH void send_faces (object *ob); + MTH void send_animation (short anim_num); + // called when something under the player changes MTH void floorbox_update () { update_look = 1; } // called when the player has been moved @@ -280,12 +288,6 @@ ((__sockPtr)->has_readable_type) && \ ((__sockPtr)->supported_readables & (1<<(__type))) ) -/* Bitmask for the faces_sent[] array - what - * portion of the face have we sent? - */ -#define NS_FACESENT_FACE 0x1 -#define NS_FACESENT_SMOOTH 0x2 - /* Constants in the form EMI_ is for extended map infos. * Even if the client select the additionnal infos it wants * on the map, there may exist cases where this whole info