]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.h
DP code cleanup, stage one - all headers that can be protected by ifdef
[xonotic/darkplaces.git] / menu.h
diff --git a/menu.h b/menu.h
index 8b5a34e18278d095c5a97b720d33a0347a97f766..44081dd9b8af37dd5475a7c1cd31fccd26529d4f 100644 (file)
--- a/menu.h
+++ b/menu.h
@@ -18,6 +18,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
 */
 
+#ifndef MENU_H
+#define MENU_H
+
 //
 // the net drivers should just set the apropriate bits in m_activenet,
 // instead of having the menu code look through their internal tables
@@ -25,9 +28,30 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define        MNET_IPX                1
 #define        MNET_TCP                2
 
+enum m_state_e {
+       m_none,
+       m_main,
+       m_demo,
+       m_singleplayer,
+       m_load,
+       m_save,
+       m_multiplayer,
+       m_setup,
+       m_net,
+       m_options,
+       m_video,
+       m_keys,
+       m_help,
+       m_quit,
+       m_lanconfig,
+       m_gameoptions,
+       m_search,
+       m_slist
+};
+
 extern int m_activenet;
 extern int m_return_state;
-extern int m_state;
+extern enum m_state_e m_state;
 extern qboolean m_return_onerror;
 extern char m_return_reason[32];
 
@@ -39,4 +63,5 @@ void M_Keydown (int key);
 void M_Draw (void);
 void M_ToggleMenu_f (void);
 
+#endif