summaryrefslogtreecommitdiff
path: root/src/heretic
diff options
context:
space:
mode:
Diffstat (limited to 'src/heretic')
-rw-r--r--src/heretic/d_main.c4
-rw-r--r--src/heretic/d_net.c2
-rw-r--r--src/heretic/doomdef.h1
-rw-r--r--src/heretic/sb_bar.c2
4 files changed, 4 insertions, 5 deletions
diff --git a/src/heretic/d_main.c b/src/heretic/d_main.c
index d43c4994..6af7dda1 100644
--- a/src/heretic/d_main.c
+++ b/src/heretic/d_main.c
@@ -61,7 +61,6 @@
#define STARTUP_WINDOW_X 17
#define STARTUP_WINDOW_Y 7
-GameMission_t gamemission = heretic;
GameMode_t gamemode = indetermined;
char *gamedescription = "unknown";
@@ -805,6 +804,7 @@ static void D_Endoom(void)
void D_DoomMain(void)
{
+ GameMission_t gamemission;
int p;
char file[256];
@@ -1160,7 +1160,7 @@ void D_DoomMain(void)
// Check valid episode and map
if (autostart || netgame)
{
- if (!D_ValidEpisodeMap(gamemission, gamemode, startepisode, startmap))
+ if (!D_ValidEpisodeMap(heretic, gamemode, startepisode, startmap))
{
startepisode = 1;
startmap = 1;
diff --git a/src/heretic/d_net.c b/src/heretic/d_net.c
index 8b10df07..e774eb03 100644
--- a/src/heretic/d_net.c
+++ b/src/heretic/d_net.c
@@ -164,7 +164,7 @@ static void InitConnectData(net_connect_data_t *connect_data)
// Game type fields:
connect_data->gamemode = gamemode;
- connect_data->gamemission = gamemission;
+ connect_data->gamemission = heretic;
connect_data->lowres_turn = false;
diff --git a/src/heretic/doomdef.h b/src/heretic/doomdef.h
index 55813dbe..6db8798e 100644
--- a/src/heretic/doomdef.h
+++ b/src/heretic/doomdef.h
@@ -499,7 +499,6 @@ extern gameaction_t gameaction;
extern boolean paused;
extern GameMode_t gamemode;
-extern GameMission_t gamemission;
extern boolean ExtendedWAD; // true if main WAD is the extended version
diff --git a/src/heretic/sb_bar.c b/src/heretic/sb_bar.c
index 03ec453d..4db3094b 100644
--- a/src/heretic/sb_bar.c
+++ b/src/heretic/sb_bar.c
@@ -1241,7 +1241,7 @@ static void CheatWarpFunc(player_t * player, Cheat_t * cheat)
episode = args[0] - '0';
map = args[1] - '0';
- if (D_ValidEpisodeMap(gamemission, gamemode, episode, map))
+ if (D_ValidEpisodeMap(heretic, gamemode, episode, map))
{
G_DeferedInitNew(gameskill, episode, map);
P_SetMessage(player, DEH_String(TXT_CHEATWARP), false);