mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Duplicate code from merge that was writing out of range for 4p splitscreen
This commit is contained in:
parent
216d282484
commit
4a099fd98d
1 changed files with 1 additions and 10 deletions
11
src/r_main.c
11
src/r_main.c
|
|
@ -1027,15 +1027,6 @@ void R_ExecuteSetViewSize(void)
|
||||||
// planes
|
// planes
|
||||||
if (rendermode == render_soft)
|
if (rendermode == render_soft)
|
||||||
{
|
{
|
||||||
// this is only used for planes rendering in software mode
|
|
||||||
j = viewheight*16;
|
|
||||||
for (i = 0; i < j; i++)
|
|
||||||
{
|
|
||||||
dy = ((i - viewheight*8)<<FRACBITS) + FRACUNIT/2;
|
|
||||||
dy = FixedMul(abs(dy), fovtan[s]);
|
|
||||||
yslopetab[s][i] = FixedDiv(centerx*FRACUNIT, dy);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ds_su)
|
if (ds_su)
|
||||||
Z_Free(ds_su);
|
Z_Free(ds_su);
|
||||||
if (ds_sv)
|
if (ds_sv)
|
||||||
|
|
@ -1212,7 +1203,7 @@ void R_SetupFrame(player_t *player)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i > r_splitscreen)
|
if (i > r_splitscreen)
|
||||||
return; // shouldn't be possible, but just in case
|
return; // shouldn't be possible, but just in case
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue