shithub: choc

Download patch

ref: 7c9dcf6db6b123b046a37270cd1e961a9986e814
parent: 682f6698c7a581edbf39b50d16fe350b3cc5278c
author: Simon Howard <[email protected]>
date: Sat Jul 11 07:26:05 EDT 2009

Only show altdeath option in Doom setup.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1616

--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -596,6 +596,7 @@
     txt_table_t *gameopt_table;
     txt_table_t *advanced_table;
     txt_widget_t *iwad_selector;
+    int num_mult_types = 2;
 
     window = TXT_NewWindow("Start multiplayer game");
 
@@ -616,6 +617,15 @@
     
     TXT_SetColumnWidths(gameopt_table, 12, 12);
 
+    if (gamemission == doom)
+    {
+        num_mult_types = 3;
+    }
+    else
+    {
+        num_mult_types = 2;
+    }
+
     TXT_AddWidgets(gameopt_table,
            TXT_NewLabel("Game"),
            iwad_selector = IWADSelector(),
@@ -622,7 +632,7 @@
            TXT_NewLabel("Skill"),
            skillbutton = TXT_NewDropdownList(&skill, doom_skills, 5),
            TXT_NewLabel("Game type"),
-           TXT_NewDropdownList(&deathmatch, gamemodes, 3),
+           TXT_NewDropdownList(&deathmatch, gamemodes, num_mult_types),
            TXT_NewLabel("Level warp"),
            warpbutton = TXT_NewButton2("????", LevelSelectDialog, NULL),
            TXT_NewLabel("Time limit"),