--- deliantra/server/include/define.h 2006/12/20 14:38:50 1.27 +++ deliantra/server/include/define.h 2006/12/21 06:12:36 1.29 @@ -112,12 +112,12 @@ * Additionally, when you add a new entry, include it in the table in item.c */ -/* type 0 will be undefined and shows a non valid type information */ - /* USED TYPES: (for dead types please look at the bottom of the type * definitions) */ +/* type 0 objects have the default behaviour */ + #define PLAYER 1 #define TRANSPORT 2 /* see pod/objects.pod */ #define ROD 3 @@ -815,16 +815,19 @@ * Use of the state-variable in player objects: */ -#define ST_PLAYING 0 -#define ST_PLAY_AGAIN 1 -#define ST_ROLL_STAT 2 -#define ST_CHANGE_CLASS 3 -#define ST_CONFIRM_QUIT 4 -#define ST_CONFIGURE 5 -#define ST_GET_NAME 6 -#define ST_GET_PASSWORD 7 -#define ST_CONFIRM_PASSWORD 8 -#define ST_GET_PARTY_PASSWORD 10 +enum { + ST_PLAYING, + ST_PLAY_AGAIN, + ST_ROLL_STAT, + ST_CHANGE_CLASS, + ST_CONFIRM_QUIT, + ST_CONFIGURE, + ST_GET_NAME, + ST_GET_PASSWORD, + ST_CONFIRM_PASSWORD, + ST_GET_PARTY_PASSWORD, + ST_CUSTOM, +}; #define BLANK_FACE_NAME "blank.111" #define EMPTY_FACE_NAME "empty.111"