summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2009-07-11 11:26:05 +0000
committerSimon Howard2009-07-11 11:26:05 +0000
commit7c9dcf6db6b123b046a37270cd1e961a9986e814 (patch)
tree570167a2049acbcbfe28941c1948e6749a537be5
parent682f6698c7a581edbf39b50d16fe350b3cc5278c (diff)
downloadchocolate-doom-7c9dcf6db6b123b046a37270cd1e961a9986e814.tar.gz
chocolate-doom-7c9dcf6db6b123b046a37270cd1e961a9986e814.tar.bz2
chocolate-doom-7c9dcf6db6b123b046a37270cd1e961a9986e814.zip
Only show altdeath option in Doom setup.
Subversion-branch: /branches/raven-branch Subversion-revision: 1616
-rw-r--r--src/setup/multiplayer.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index 101361c4..131ec068 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -596,6 +596,7 @@ void StartMultiGame(void)
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,13 +617,22 @@ void StartMultiGame(void)
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(),
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"),