mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
This commit is contained in:
commit
cc5f3a0ec0
1 changed files with 4 additions and 4 deletions
|
@ -2105,7 +2105,7 @@ void R_DrawSprite (vissprite_t *spr)
|
|||
{ // seen below floor: clip top
|
||||
if (!spr->bIsVoxel && h > topclip)
|
||||
{
|
||||
topclip = MIN<short> (h, viewheight);
|
||||
topclip = short(MIN(h, viewheight));
|
||||
}
|
||||
hzt = MIN(hzt, hz);
|
||||
}
|
||||
|
@ -2135,7 +2135,7 @@ void R_DrawSprite (vissprite_t *spr)
|
|||
{ // seen in the middle: clip top
|
||||
if (!spr->bIsVoxel && h > topclip)
|
||||
{
|
||||
topclip = MIN<short> (h, viewheight);
|
||||
topclip = MIN(h, viewheight);
|
||||
}
|
||||
hzt = MIN(hzt, hz);
|
||||
}
|
||||
|
@ -2189,7 +2189,7 @@ void R_DrawSprite (vissprite_t *spr)
|
|||
int h = xs_RoundToInt(CenterY - (hz - ViewPos.Z) * scale);
|
||||
if (h > topclip)
|
||||
{
|
||||
topclip = MIN<short>(h, viewheight);
|
||||
topclip = short(MIN(h, viewheight));
|
||||
}
|
||||
}
|
||||
hzt = MIN(hzt, sclipTop);
|
||||
|
@ -2212,7 +2212,7 @@ void R_DrawSprite (vissprite_t *spr)
|
|||
h = (centeryfrac - FixedMul (h-viewz, scale)) >> FRACBITS;
|
||||
if (h > topclip)
|
||||
{
|
||||
topclip = MIN<short> (h, viewheight);
|
||||
topclip = short(MIN(h, viewheight));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue