--- deliantra/server/include/newserver.h 2006/08/13 17:16:02 1.5 +++ deliantra/server/include/newserver.h 2006/08/29 08:01:36 1.10 @@ -47,6 +47,8 @@ short faces[MAP_LAYERS]; uint16 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 + tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient }; /* This basically defines the largest size an @@ -122,6 +124,8 @@ uint32 plugincmd:1; /* CF+ extend the protocol through a plug-in */ uint32 mapinfocmd:1; /* CF+ return map info and send map change info */ uint32 extcmd:1; /* CF+ call into extensions/plugins */ + uint32 extmap:1; /* CF+ extend map comamnd with extra data */ + uint32 buggy_mapscroll:1; /* CF+ client crashes on large mapscrolls */ uint32 darkness:1; /* True if client wants darkness information */ uint32 image2:1; /* Client wants image2/face2 commands */ uint32 update_look:1; /* If true, we need to send the look window */ @@ -141,7 +145,9 @@ * with S->C mapextended command */ uint32 EMI_smooth:1; /* Send smooth in extendmapinfos*/ - struct mapstruct *current_map; /* CF+ current player map */ + struct mapstruct *current_map; // CF+ last/current player map + int current_x, current_y; // CF+ last/current map position + char client[64]; // CF+ client name/version /* Below here is information only relevant for old sockets */ char *comment; /* name or listen comment */ @@ -150,9 +156,9 @@ #define CLIENT_SUPPORT_READABLES(__sockPtr,__type)\ - ( ((__type)>0) &&\ - ((__sockPtr)->has_readable_type) && \ - ((__sockPtr)->supported_readables & (1<<(__type))) ) + ( ((__type)>0) &&\ + ((__sockPtr)->has_readable_type) && \ + ((__sockPtr)->supported_readables & (1<<(__type))) ) /* Bitmask for the faces_sent[] array - what @@ -202,6 +208,4 @@ #define VERSION_SC 1027 #define VERSION_INFO "Crossfire+ Server" - - #endif