Merge branch 'unsigned-bruh' into 'next'

Fix incorrect cast

See merge request STJr/SRB2!669
This commit is contained in:
James R 2020-01-11 02:26:52 -05:00
commit fef72c6009
1 changed files with 2 additions and 2 deletions

View File

@ -1105,8 +1105,8 @@ static void P_LoadSidedefs(UINT8 *data)
if (((sd->line->flags & (ML_TWOSIDED|ML_EFFECT5)) == (ML_TWOSIDED|ML_EFFECT5))
&& !(sd->special >= 300 && sd->special < 500)) // exempt linedef exec specials
{
sd->repeatcnt = (INT16)(((unsigned)textureoffset) >> 12);
sd->textureoffset = (((unsigned)textureoffset) & 2047) << FRACBITS;
sd->repeatcnt = (INT16)(((UINT16)textureoffset) >> 12);
sd->textureoffset = (((UINT16)textureoffset) & 2047) << FRACBITS;
}
else
{