ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/newserver.h
(Generate patch)

Comparing deliantra/server/include/newserver.h (file contents):
Revision 1.12 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.13 by root, Tue Sep 19 22:05:55 2006 UTC

39 39
40#define NUM_LOOK_OBJECTS 50 40#define NUM_LOOK_OBJECTS 50
41 41
42struct MapCell 42struct MapCell
43{ 43{
44 tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient
45 int count; /* This is really darkness in the map1 command */
44 short faces[MAP_LAYERS]; 46 short faces[MAP_LAYERS];
45 uint16 smooth[MAP_LAYERS]; 47 uint16 smooth[MAP_LAYERS];
46 int count; /* This is really darkness in the map1 command */
47 unsigned char stat_hp; // health of something in this space, or 0 48 unsigned char stat_hp; // health of something in this space, or 0
48 tag_t player; // this is, unfortunately, very wasteful of memory space, but pretty bandwidth-efficient 49 unsigned char flags;
49}; 50};
50 51
51/* This basically defines the largest size an 52/* This basically defines the largest size an
52 * archetype may be - it is used for allocation of 53 * archetype may be - it is used for allocation of
53 * some structures, as well as determining how far 54 * some structures, as well as determining how far
54 * we should look for the heads of big images. 55 * we should look for the heads of big images.
55 */ 56 */
56#define MAX_HEAD_OFFSET 8 57#define MAX_HEAD_OFFSET 8
57 58
58# define MAX_CLIENT_X (MAP_CLIENT_X + MAX_HEAD_OFFSET) 59#define MAX_CLIENT_X (MAP_CLIENT_X + MAX_HEAD_OFFSET)
59#define MAX_CLIENT_Y (MAP_CLIENT_Y + MAX_HEAD_OFFSET) 60#define MAX_CLIENT_Y (MAP_CLIENT_Y + MAX_HEAD_OFFSET)
60 61
61struct Map 62struct Map
62{ 63{
63 struct MapCell cells[MAX_CLIENT_X][MAX_CLIENT_Y]; 64 struct MapCell cells[MAX_CLIENT_X][MAX_CLIENT_Y];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines