Skip to content
Snippets Groups Projects
Commit fef72c60 authored by James R.'s avatar James R.
Browse files

Merge branch 'unsigned-bruh' into 'next'

Fix incorrect cast

See merge request STJr/SRB2!669
parents 0345a32c 2046f524
No related branches found
No related tags found
No related merge requests found
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment