Fix chunky gap between Kart position numbers

There's still a big gap but that's a graphics lump size issue, code wouldn't solve it
This commit is contained in:
toaster 2022-11-26 22:39:27 +00:00
parent 1999cf0509
commit b1adc3d27c

View file

@ -1574,8 +1574,8 @@ static fixed_t K_DrawKartPositionNumPatch(UINT8 num, UINT8 *color, fixed_t x, fi
overlayFlags[1] = V_SUBTRACT;
}
w = kp_positionnum[num][0][splitIndex]->width * scale;
h = kp_positionnum[num][0][splitIndex]->height * scale;
w = SHORT(kp_positionnum[num][0][splitIndex]->width) * scale;
h = SHORT(kp_positionnum[num][0][splitIndex]->height) * scale;
if (flags & V_SNAPTORIGHT)
{
@ -1597,7 +1597,12 @@ static fixed_t K_DrawKartPositionNumPatch(UINT8 num, UINT8 *color, fixed_t x, fi
);
}
return (x - w);
if (!(flags & V_SNAPTORIGHT))
{
x -= w;
}
return x;
}
static void K_DrawKartPositionNum(INT32 num)