]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Disable singleplayer menu in Nexuiz (just like Transfusion does)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Jul 2003 02:59:36 +0000 (02:59 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Jul 2003 02:59:36 +0000 (02:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3111 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index 18e44fedca8f3d37de1781f1e8f9b12f298098ec..10439bd4ce76eefc6e57fb05343c8f99b7c4b10d 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -568,12 +568,15 @@ void M_SinglePlayer_Draw (void)
        p = Draw_CachePic ("gfx/ttl_sgl.lmp");
 
        // Transfusion doesn't have a single player mode
-       if (gamemode == GAME_TRANSFUSION)
+       if (gamemode == GAME_TRANSFUSION || gamemode == GAME_NEXUIZ)
        {
                M_DrawPic ((320 - p->width) / 2, 4, "gfx/ttl_sgl.lmp");
 
                M_DrawTextBox (60, 8 * 8, 23, 4);
-               M_PrintWhite (95, 10 * 8, "Transfusion is for");
+               if (gamemode == GAME_NEXUIZ)
+                       M_PrintWhite (95, 10 * 8, "Nexuiz is for");
+               else
+                       M_PrintWhite (95, 10 * 8, "Transfusion is for");
                M_PrintWhite (83, 11 * 8, "multiplayer play only");
        }
        else
@@ -592,7 +595,7 @@ void M_SinglePlayer_Draw (void)
 
 void M_SinglePlayer_Key (int key)
 {
-       if (gamemode == GAME_TRANSFUSION)
+       if (gamemode == GAME_TRANSFUSION || gamemode == GAME_NEXUIZ)
        {
                if (key == K_ESCAPE || key == K_ENTER)
                        m_state = m_main;