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

Comparing deliantra/server/include/face.h (file contents):
Revision 1.40 by root, Mon Oct 29 23:55:53 2012 UTC vs.
Revision 1.42 by root, Sun Nov 11 04:29:11 2012 UTC

25 25
26#include <util.h> 26#include <util.h>
27#include <tr1/unordered_map> 27#include <tr1/unordered_map>
28 28
29#define CHKSUM_MAXLEN 15 29#define CHKSUM_MAXLEN 15
30#define MAX_FACES 10000 // stupid gcfclient artificially limits 30#define MAX_FACES 65535 // we reserve face #65535
31
32typedef uint16 faceidx;
33 31
34extern faceidx blank_face, empty_face, magicmouth_face; 32extern faceidx blank_face, empty_face, magicmouth_face;
35 33
36struct facedata 34struct facedata
37{ 35{
38 refcnt_buf data; // no need to be refcounted actually 36 uint32_t size;
37 uint32_t fofs; // file offste in facedatax
39 uint8 chksum[CHKSUM_MAXLEN]; 38 uint8 chksum[CHKSUM_MAXLEN];
40 uint8 chksum_len; 39 uint8 chksum_len;
41 40
42 facedata () 41 facedata ()
43 : chksum_len (0) 42 : size (0), fofs (0), chksum_len (0)
44 { } 43 { }
45}; 44};
46 45
47/* New face structure - this enforces the notion that data is face by 46/* New face structure - this enforces the notion that data is face by
48 * face only - you can not change the color of an item - you need to instead 47 * face only - you can not change the color of an item - you need to instead

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines