mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Another potential papersprite crash fix, but way more confident about this one.
This commit is contained in:
parent
0058b92a8c
commit
2fec610328
1 changed files with 3 additions and 2 deletions
|
|
@ -1340,9 +1340,10 @@ static void R_ProjectSprite(mobj_t *thing)
|
||||||
if ((range = x2 - x1) <= 0)
|
if ((range = x2 - x1) <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
range++; // fencepost problem
|
||||||
|
|
||||||
scalestep = (yscale2 - yscale)/range;
|
scalestep = (yscale2 - yscale)/range;
|
||||||
scalestep = scalestep ? scalestep : 1;
|
xscale = FixedDiv(range<<FRACBITS, abs(offset2));
|
||||||
xscale = FixedDiv(range<<FRACBITS, abs(offset2))+1;
|
|
||||||
|
|
||||||
// The following two are alternate sorting methods which might be more applicable in some circumstances. TODO - maybe enable via MF2?
|
// The following two are alternate sorting methods which might be more applicable in some circumstances. TODO - maybe enable via MF2?
|
||||||
// sortscale = max(yscale, yscale2);
|
// sortscale = max(yscale, yscale2);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue