summaryrefslogtreecommitdiffstats
path: root/apps/plugins/doom/g_game.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/doom/g_game.c')
-rw-r--r--apps/plugins/doom/g_game.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/plugins/doom/g_game.c b/apps/plugins/doom/g_game.c
index 8aab9fc3cf..e41c84c378 100644
--- a/apps/plugins/doom/g_game.c
+++ b/apps/plugins/doom/g_game.c
@@ -1549,7 +1549,7 @@ static const size_t num_version_headers = sizeof(version_headers) / sizeof(versi
void G_DoLoadGame(void)
{
- int length, i;
+ int i;
// CPhipps - do savegame filename stuff here
char name[100+1]; // killough 3/22/98
int savegame_compatibility = -1;
@@ -1558,7 +1558,7 @@ void G_DoLoadGame(void)
gameaction = ga_nothing;
- length = M_ReadFile(name, &savebuffer);
+ M_ReadFile(name, &savebuffer);
save_p = savebuffer + SAVESTRINGSIZE;
// CPhipps - read the description field, compare with supported ones
@@ -2565,7 +2565,6 @@ static const byte* G_ReadDemoHeader(const byte *demo_p)
skill_t skill;
int i, episode, map;
int demover;
- const byte *option_p = NULL; /* killough 11/98 */
basetic = gametic; // killough 9/29/98
@@ -2674,10 +2673,6 @@ static const byte* G_ReadDemoHeader(const byte *demo_p)
deathmatch = *demo_p++;
consoleplayer = *demo_p++;
- /* killough 11/98: save option pointer for below */
- if (mbf_features)
- option_p = demo_p;
-
demo_p = G_ReadOptions(demo_p); // killough 3/1/98: Read game options
if (demover == 200) // killough 6/3/98: partially fix v2.00 demos