mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-25 11:50:50 +00:00
Merge branch 'softlock' into 'master'
Fix overflow check overflowing in R_DrawRepeatMaskedColumn See merge request KartKrew/Kart-Public!346
This commit is contained in:
commit
b96a86a289
1 changed files with 1 additions and 1 deletions
|
@ -681,7 +681,7 @@ static void R_DrawRepeatMaskedColumn(column_t *col)
|
|||
{
|
||||
while (sprtopscreen < sprbotscreen) {
|
||||
R_DrawMaskedColumn(col);
|
||||
if ((INT64)sprtopscreen + dc_texheight*spryscale > (INT64)INT32_MAX) // prevent overflow
|
||||
if (sprtopscreen + (INT64)dc_texheight*spryscale > (INT64)INT32_MAX) // prevent overflow
|
||||
sprtopscreen = INT32_MAX;
|
||||
else
|
||||
sprtopscreen += dc_texheight*spryscale;
|
||||
|
|
Loading…
Reference in a new issue