]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - menu.h
sv.edicts (and related things) are now dynamically reallocated as more edicts are...
[xonotic/darkplaces.git] / menu.h
diff --git a/menu.h b/menu.h
index 616de3f84813436c3022f89de8836eb9e024f395..2031fb17347df2c688288c19df431828de8059fc 100644 (file)
--- a/menu.h
+++ b/menu.h
@@ -8,7 +8,7 @@ of the License, or (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 See the GNU General Public License for more details.
 
@@ -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,7 +28,34 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #define        MNET_IPX                1
 #define        MNET_TCP                2
 
-extern int     m_activenet;
+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,
+       m_options_effects,
+       m_options_colorcontrol
+};
+
+extern int m_activenet;
+extern int m_return_state;
+extern enum m_state_e m_state;
+extern qboolean m_return_onerror;
+extern char m_return_reason[32];
 
 //
 // menus
@@ -35,4 +65,5 @@ void M_Keydown (int key);
 void M_Draw (void);
 void M_ToggleMenu_f (void);
 
+#endif