Y_DrawVoteBackground: use unsigned type to avoid negative modulo into underflow

- Fixes a rare crash if the vote screen has been present
  enough times
This commit is contained in:
James R 2024-03-27 03:43:10 -07:00
parent 31afbef95a
commit 1e6c401e96

View file

@ -660,7 +660,7 @@ static void Y_DrawCatcher(y_vote_catcher *catcher)
//
static void Y_DrawVoteBackground(void)
{
static fixed_t bgTimer = 0;
static UINT32 bgTimer = 0;
static fixed_t derrPos = 0;
const fixed_t derrLoop = vote_draw.bg_derrText->width * FRACUNIT;