Skip to content

Commit

Permalink
Make Team Arena pk3 error show when missing all pk3 files
Browse files Browse the repository at this point in the history
The error was only displayed for Team Arena if one of the Team Arena pk3s
were found. Fix it to be display when trying to run Team Arena even with
no Team Arena pk3s present.
  • Loading branch information
zturtleman committed Aug 28, 2024
1 parent 814e175 commit e42db5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/qcommon/files.c
Original file line number Diff line number Diff line change
Expand Up @@ -3685,7 +3685,8 @@ static void FS_CheckPak0( void )
Com_Error(ERR_FATAL, "%s", errorText);
}

if(!com_standalone->integer && foundTA && (foundTA & ((1<<NUM_TA_PAKS)-1)) != ((1<<NUM_TA_PAKS)-1))
if(!com_standalone->integer && (foundTA & ((1<<NUM_TA_PAKS)-1)) != ((1<<NUM_TA_PAKS)-1)
&& (!Q_stricmp(fs_gamedirvar->string, BASETA) || !Q_stricmp(fs_basegame->string, BASETA)))
{
char errorText[MAX_STRING_CHARS] = "";

Expand Down

0 comments on commit e42db5b

Please sign in to comment.