summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/main.h b/src/main.h
index 36deae9d..3c003ee8 100644
--- a/src/main.h
+++ b/src/main.h
@@ -46,14 +46,17 @@
#undef ERROR
#endif
-#define EXIT 0
-#define LOGIN 1
-#define CHAR_SERVER 2
-#define CHAR_SELECT 3
-#define CHAR_NEW 4
-#define CHAR_DEL 5
-#define GAME 6
-#define ERROR 7
+enum {
+ EXIT,
+ LOGIN,
+ CHAR_SERVER,
+ CHAR_SELECT,
+ CHAR_NEW,
+ CHAR_DEL,
+ GAME,
+ ERROR,
+ UPDATE
+};
/* length definitions for several char[]s in order
* to be able to use strncpy instead of strcpy for