summaryrefslogtreecommitdiff
path: root/src/setup/multiplayer.c
diff options
context:
space:
mode:
authorSimon Howard2009-05-10 19:10:06 +0000
committerSimon Howard2009-05-10 19:10:06 +0000
commitd87bf91d31c58aaea1a0f3e43f6f9cdda5f6488f (patch)
tree1d1b4e8e47d4acd19c430f0ceb34da859575934b /src/setup/multiplayer.c
parent1d408321cbcdc72826d3d0939b12410d6130c889 (diff)
downloadchocolate-doom-d87bf91d31c58aaea1a0f3e43f6f9cdda5f6488f.tar.gz
chocolate-doom-d87bf91d31c58aaea1a0f3e43f6f9cdda5f6488f.tar.bz2
chocolate-doom-d87bf91d31c58aaea1a0f3e43f6f9cdda5f6488f.zip
Set appropriate skill strings for Heretic/Hexen.
Subversion-branch: /branches/raven-branch Subversion-revision: 1517
Diffstat (limited to 'src/setup/multiplayer.c')
-rw-r--r--src/setup/multiplayer.c43
1 files changed, 40 insertions, 3 deletions
diff --git a/src/setup/multiplayer.c b/src/setup/multiplayer.c
index fe7ffd39..2157b43c 100644
--- a/src/setup/multiplayer.c
+++ b/src/setup/multiplayer.c
@@ -61,7 +61,7 @@ static int found_iwad_selected;
static char *iwadfile;
-static char *skills[] =
+static char *doom_skills[] =
{
"I'm too young to die!",
"Hey, not too rough.",
@@ -79,6 +79,35 @@ static char *chex_skills[] =
"SUPER SLIMEY!"
};
+static char *heretic_skills[] =
+{
+ "Thou needeth a wet-nurse",
+ "Yellowbellies-R-us",
+ "Bringest them oneth",
+ "Thou art a smite-meister",
+ "Black plague possesses thee"
+};
+
+static char *hexen_skills[] =
+{
+ "Squire/Altar boy/Apprentice",
+ "Knight/Acolyte/Enchanter",
+ "Warrior/Priest/Sorceror",
+ "Berserker/Cardinal/Warlock",
+ "Titan/Pope/Archimage"
+};
+
+static struct
+{
+ GameMission_t mission;
+ char **strings;
+} skills[] =
+{
+ { doom, doom_skills },
+ { heretic, heretic_skills },
+ { hexen, hexen_skills }
+};
+
static char *gamemodes[] =
{
"Co-operative",
@@ -250,6 +279,7 @@ static void UpdateWarpButton(void)
static void UpdateSkillButton(void)
{
iwad_t *iwad = GetCurrentIWAD();
+ int i;
if (IsChexQuest(iwad))
{
@@ -257,7 +287,14 @@ static void UpdateSkillButton(void)
}
else
{
- skillbutton->values = skills;
+ for (i=0; i<arrlen(skills); ++i)
+ {
+ if (gamemission == skills[i].mission)
+ {
+ skillbutton->values = skills[i].strings;
+ break;
+ }
+ }
}
}
@@ -562,7 +599,7 @@ void StartMultiGame(void)
TXT_NewLabel("Game"),
iwad_selector = IWADSelector(),
TXT_NewLabel("Skill"),
- skillbutton = TXT_NewDropdownList(&skill, skills, 5),
+ skillbutton = TXT_NewDropdownList(&skill, doom_skills, 5),
TXT_NewLabel("Game type"),
TXT_NewDropdownList(&deathmatch, gamemodes, 3),
TXT_NewLabel("Level warp"),