mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
make the menu load when the gamedir hasn't been set
This commit is contained in:
parent
a45223da6c
commit
6ef4770adb
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue