make the menu load when the gamedir hasn't been set

This commit is contained in:
Bill Currie 2003-02-28 05:28:35 +00:00
parent a45223da6c
commit 6ef4770adb

View file

@ -808,10 +808,13 @@ C_ProcessInput (void)
static void
C_NewMap (void)
{
static int first_time = 1;
static char old_gamedir[MAX_OSPATH];
if (!strequal (old_gamedir, qfs_gamedir->gamedir))
if (first_time || !strequal (old_gamedir, qfs_gamedir->gamedir)) {
first_time = 0;
Menu_Load ();
}
strcpy (old_gamedir, qfs_gamedir->gamedir);
}