# HG changeset patch # User tron # Date 1107881608 0 # Node ID d68d969eb662ddc3cb64cc082961d6a9e96ca23d # Parent 9797051fb17366758f26a56dcf79beb538fb1c7d (svn r1849) Use the cheat entry enum for CheatEntry.type and remove unused enum values diff -r 9797051fb173 -r d68d969eb662 misc_gui.c --- a/misc_gui.c Tue Feb 08 16:37:28 2005 +0000 +++ b/misc_gui.c Tue Feb 08 16:53:28 2005 +0000 @@ -1554,8 +1554,18 @@ typedef int32 CheckButtonClick(int32, int32); +typedef enum ce_type { + CE_BOOL = 0, + CE_UINT8 = 1, + CE_INT16 = 2, + CE_UINT16 = 3, + CE_INT32 = 4, + CE_BYTE = 5, + CE_CLICK = 6, +} ce_type; + typedef struct CheatEntry { - byte type; // type of selector + ce_type type; // type of selector byte flags; // selector flags StringID str; // string with descriptive text void *variable; // pointer to the variable @@ -1565,19 +1575,6 @@ uint16 step; // step for spinbox } CheatEntry; -enum { - CE_BOOL = 0, - CE_UINT8 = 1, - CE_INT16 = 2, - CE_UINT16 = 3, - CE_INT32 = 4, - CE_BYTE = 5, - CE_CLICK = 6, - - CF_0ISDIS = 1, - CF_NOCOMMA = 2, -}; - static int32 ReadCE(const CheatEntry*ce) { switch(ce->type) {