mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 13:10:55 +00:00
Merge branch 'unsigned-bruh' into 'next'
Fix incorrect cast See merge request STJr/SRB2!669
This commit is contained in:
commit
fef72c6009
1 changed files with 2 additions and 2 deletions
|
@ -1105,8 +1105,8 @@ static void P_LoadSidedefs(UINT8 *data)
|
||||||
if (((sd->line->flags & (ML_TWOSIDED|ML_EFFECT5)) == (ML_TWOSIDED|ML_EFFECT5))
|
if (((sd->line->flags & (ML_TWOSIDED|ML_EFFECT5)) == (ML_TWOSIDED|ML_EFFECT5))
|
||||||
&& !(sd->special >= 300 && sd->special < 500)) // exempt linedef exec specials
|
&& !(sd->special >= 300 && sd->special < 500)) // exempt linedef exec specials
|
||||||
{
|
{
|
||||||
sd->repeatcnt = (INT16)(((unsigned)textureoffset) >> 12);
|
sd->repeatcnt = (INT16)(((UINT16)textureoffset) >> 12);
|
||||||
sd->textureoffset = (((unsigned)textureoffset) & 2047) << FRACBITS;
|
sd->textureoffset = (((UINT16)textureoffset) & 2047) << FRACBITS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue