summaryrefslogtreecommitdiff
path: root/src/d_mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/d_mode.c')
-rw-r--r--src/d_mode.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/d_mode.c b/src/d_mode.c
index ec3bea44..84e3bf6a 100644
--- a/src/d_mode.c
+++ b/src/d_mode.c
@@ -187,3 +187,30 @@ boolean D_IsEpisodeMap(GameMission_t mission)
}
}
+char *D_GameMissionString(GameMission_t mission)
+{
+ switch (mission)
+ {
+ case none:
+ return "none";
+ case doom:
+ return "doom";
+ case doom2:
+ return "doom2";
+ case pack_tnt:
+ return "tnt";
+ case pack_plut:
+ return "plutonia";
+ case pack_hacx:
+ return "hacx";
+ case pack_chex:
+ return "chex";
+ case heretic:
+ return "heretic";
+ case hexen:
+ return "hexen";
+ case strife:
+ return "strife";
+ }
+}
+