mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Newsnapshotfile: increase array size to fit webm extension
This commit is contained in:
parent
a469cebef7
commit
32ed5fe4ae
1 changed files with 2 additions and 1 deletions
|
|
@ -782,12 +782,13 @@ static void M_CreateScreenShotPalette(void)
|
|||
#if NUMSCREENS > 2
|
||||
static const char *Newsnapshotfile(const char *pathname, const char *ext)
|
||||
{
|
||||
static char freename[19] = "ringracersXXXX.ext";
|
||||
static char freename[20] = "ringracersXXXX.exte";
|
||||
int i = 5000; // start in the middle: num screenshots divided by 2
|
||||
int add = i; // how much to add or subtract if wrong; gets divided by 2 each time
|
||||
int result; // -1 = guess too high, 0 = correct, 1 = guess too low
|
||||
|
||||
// find a file name to save it to
|
||||
I_Assert(strlen(ext) < (sizeof freename) - 15);
|
||||
strcpy(freename+15,ext);
|
||||
|
||||
for (;;)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue