mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix mainwads-dependent calculations
- sounds.pk3 was being considered a mainwad in some spots due to use of <= instead of < - fileneeded material was manually skipping over base musicwads when it didn't have to
This commit is contained in:
parent
4b81be037a
commit
1517ba4d89
3 changed files with 7 additions and 7 deletions
|
|
@ -4639,10 +4639,10 @@ static void Command_ListWADS_f(void)
|
|||
nameonly(tempname = va("%s", wadfiles[i]->filename));
|
||||
if (!i)
|
||||
CONS_Printf("\x82 IWAD\x80: %s\n", tempname);
|
||||
else if (i <= mainwads)
|
||||
else if (i < mainwads)
|
||||
CONS_Printf("\x82 * %.2d\x80: %s\n", i, tempname);
|
||||
else if (!wadfiles[i]->important)
|
||||
CONS_Printf("\x86 %c %.2d: %s\n", ((i <= mainwads + musicwads) ? '*' : ' '), i, tempname);
|
||||
CONS_Printf("\x86 %c %.2d: %s\n", ((i < mainwads + musicwads) ? '*' : ' '), i, tempname);
|
||||
else
|
||||
CONS_Printf(" %.2d: %s\n", i, tempname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -163,10 +163,10 @@ UINT8 *PutFileNeeded(UINT16 firstfile)
|
|||
#ifdef DEVELOP
|
||||
i = 0;
|
||||
#else
|
||||
i = mainwads + 1;
|
||||
i = mainwads + musicwads;
|
||||
#endif
|
||||
|
||||
for (; i < numwadfiles; i++) //mainwads+1, otherwise we start on the first mainwad
|
||||
for (; i < numwadfiles; i++) //mainwads+musicwads, otherwise we start on the first mainwad
|
||||
{
|
||||
// If it has only music/sound lumps, don't put it in the list
|
||||
if (!wadfiles[i]->important)
|
||||
|
|
@ -197,7 +197,7 @@ UINT8 *PutFileNeeded(UINT16 firstfile)
|
|||
|
||||
/* don't send mainwads!! */
|
||||
#ifdef DEVELOP
|
||||
if (i <= mainwads)
|
||||
if (i < mainwads)
|
||||
filestatus += (2 << 4);
|
||||
#endif
|
||||
|
||||
|
|
@ -565,7 +565,7 @@ INT32 CL_CheckFiles(void)
|
|||
#ifdef DEVELOP
|
||||
j = 0;
|
||||
#else
|
||||
j = mainwads + 1;
|
||||
j = mainwads + musicwads;
|
||||
#endif
|
||||
for (i = 0; i < fileneedednum || j < numwadfiles;)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1293,7 +1293,7 @@ Rloadtextures (INT32 i, INT32 w)
|
|||
}
|
||||
|
||||
INT32 sizeLimit = 2048;
|
||||
if (w <= mainwads)
|
||||
if (w < mainwads)
|
||||
{
|
||||
// TODO: we ran out of time to do this properly.
|
||||
// 4096 limit on textures may be incompatible with some older graphics cards (circa 2005-2008?).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue