--- deliantra/server/include/client.h 2007/03/14 00:04:58 1.35 +++ deliantra/server/include/client.h 2007/03/14 04:12:28 1.37 @@ -35,11 +35,11 @@ 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 */ + 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 + unsigned char stat_hp; // health of something in this space, or 0 unsigned char flags; + uint8_t smooth[MAP_LAYERS]; }; #define MAX_CLIENT_X MAP_CLIENT_X @@ -237,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]; @@ -268,7 +269,6 @@ 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_smooth (faceidx facenum); MTH void send_animation (short anim_num); // called when something under the player changes @@ -288,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