mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-25 13:51:43 +00:00
Do the same to R_DrawPrecipitationVisSprite
This commit is contained in:
parent
0c664681cd
commit
6ccb1f7ca3
1 changed files with 1 additions and 9 deletions
|
@ -1021,16 +1021,8 @@ static void R_DrawPrecipitationVisSprite(vissprite_t *vis)
|
||||||
|
|
||||||
for (dc_x = vis->x1; dc_x <= vis->x2; dc_x++, frac += vis->xiscale)
|
for (dc_x = vis->x1; dc_x <= vis->x2; dc_x++, frac += vis->xiscale)
|
||||||
{
|
{
|
||||||
#ifdef RANGECHECK
|
texturecolumn = (frac>>FRACBITS) & patch->width_mask;
|
||||||
texturecolumn = frac>>FRACBITS;
|
|
||||||
|
|
||||||
if (texturecolumn < 0 || texturecolumn >= patch->width)
|
|
||||||
I_Error("R_DrawPrecipitationSpriteRange: bad texturecolumn");
|
|
||||||
|
|
||||||
column = &patch->columns[texturecolumn];
|
column = &patch->columns[texturecolumn];
|
||||||
#else
|
|
||||||
column = &patch->columns[frac>>FRACBITS];
|
|
||||||
#endif
|
|
||||||
R_DrawMaskedColumn(column);
|
R_DrawMaskedColumn(column);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue