Fix prohibits illegal downloading of id PK3 files from servers. That bug is hit by *every* official server release from ID.
This commit is contained in:
parent
ef51968654
commit
40d5eee8ef
2 changed files with 9 additions and 2 deletions
|
@ -2556,6 +2556,13 @@ FS_idPak
|
|||
*/
|
||||
qboolean FS_idPak( char *pak, char *base ) {
|
||||
int i;
|
||||
char pakbuf[MAX_QPATH], *pakptr;
|
||||
|
||||
// Chop off filename extension if necessary.
|
||||
Com_sprintf(pakbuf, sizeof(pakbuf), "%s", pak);
|
||||
pakptr = Q_strrchr(pakbuf, '.');
|
||||
if(pakptr)
|
||||
*pakptr = '\0';
|
||||
|
||||
for (i = 0; i < NUM_ID_PAKS; i++) {
|
||||
if ( !FS_FilenameCompare(pak, va("%s/pak%d", base, i)) ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue