Fix tilted spans.

This commit is contained in:
Jaime Passos 2019-09-06 19:37:07 -03:00
parent 2a85ed0bdd
commit 02a7d8e0a2
1 changed files with 24 additions and 24 deletions

View File

@ -726,8 +726,8 @@ void R_DrawTiltedSpan_8(void)
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -780,8 +780,8 @@ void R_DrawTiltedSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -813,8 +813,8 @@ void R_DrawTiltedSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -851,8 +851,8 @@ void R_DrawTiltedSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -929,8 +929,8 @@ void R_DrawTiltedTranslucentSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -983,8 +983,8 @@ void R_DrawTiltedTranslucentSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1016,8 +1016,8 @@ void R_DrawTiltedTranslucentSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1054,8 +1054,8 @@ void R_DrawTiltedTranslucentSpan_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1132,8 +1132,8 @@ void R_DrawTiltedSplat_8(void)
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1190,8 +1190,8 @@ void R_DrawTiltedSplat_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1225,8 +1225,8 @@ void R_DrawTiltedSplat_8(void)
colormap = planezlight[tiltlighting[ds_x1++]] + (ds_colormap - colormaps);
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)
@ -1266,8 +1266,8 @@ void R_DrawTiltedSplat_8(void)
val = source[((v >> nflatyshift) & nflatmask) | (u >> nflatxshift)];
if (!ds_powersoftwo)
{
fixed_t x = ((u-viewx) >> FRACBITS);
fixed_t y = ((v-viewy) >> FRACBITS);
fixed_t x = (((fixed_t)u-viewx) >> FRACBITS);
fixed_t y = (((fixed_t)v-viewy) >> FRACBITS);
// Carefully align all of my Friends.
if (x < 0)