mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fixx GCC 4.4 array-bounds compile errors
This commit is contained in:
parent
1de758fcff
commit
5347d5390f
2 changed files with 4 additions and 4 deletions
|
|
@ -2098,7 +2098,7 @@ void D_SetupVote(void)
|
||||||
else
|
else
|
||||||
m = G_RandMap(G_TOLFlag(gametype), prevmap, false, 0, true, votebuffer);
|
m = G_RandMap(G_TOLFlag(gametype), prevmap, false, 0, true, votebuffer);
|
||||||
if (i < 3)
|
if (i < 3)
|
||||||
votebuffer[i] = m;
|
votebuffer[min(i, 2)] = m; // min() is a dumb workaround for gcc 4.4 array-bounds error
|
||||||
WRITEUINT16(p, m);
|
WRITEUINT16(p, m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3234,9 +3234,9 @@ static void readwipes(MYFILE *f)
|
||||||
else if (fastcmp(pword, "FINAL"))
|
else if (fastcmp(pword, "FINAL"))
|
||||||
wipeoffset = wipe_specinter_final;
|
wipeoffset = wipe_specinter_final;
|
||||||
}
|
}
|
||||||
else if (fastncmp(word, "VOTING_", 10))
|
else if (fastncmp(word, "VOTING_", 7))
|
||||||
{
|
{
|
||||||
pword = word + 10;
|
pword = word + 7;
|
||||||
if (fastcmp(pword, "TOBLACK"))
|
if (fastcmp(pword, "TOBLACK"))
|
||||||
wipeoffset = wipe_specinter_toblack;
|
wipeoffset = wipe_specinter_toblack;
|
||||||
else if (fastcmp(pword, "FINAL"))
|
else if (fastcmp(pword, "FINAL"))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue