mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Change UDMF wall scroll scale to SCROLL_SHIFT
UDMF special 502 now must scale arg 2 and 3 in the same scale space as line length scrolling in binary format. This is to ensure compatibility with the binary format. Fixes STJr/SRB2#862 Co-Authored-By: MascaraSnake <jonassauer27@gmail.com>
This commit is contained in:
parent
5c9599f0a9
commit
a88d046db4
1 changed files with 4 additions and 4 deletions
|
|
@ -5419,13 +5419,13 @@ static void P_ConvertBinaryLinedefTypes(void)
|
|||
lines[i].args[1] = 0;
|
||||
if (lines[i].flags & ML_NOSKEW)
|
||||
{
|
||||
lines[i].args[2] = lines[i].dx >> (FRACBITS + SCROLL_SHIFT);
|
||||
lines[i].args[3] = lines[i].dy >> (FRACBITS + SCROLL_SHIFT);
|
||||
lines[i].args[2] = sides[lines[i].sidenum[0]].textureoffset >> (FRACBITS - SCROLL_SHIFT);
|
||||
lines[i].args[3] = sides[lines[i].sidenum[0]].rowoffset >> (FRACBITS - SCROLL_SHIFT);
|
||||
}
|
||||
else
|
||||
{
|
||||
lines[i].args[2] = sides[lines[i].sidenum[0]].textureoffset >> FRACBITS;
|
||||
lines[i].args[3] = sides[lines[i].sidenum[0]].rowoffset >> FRACBITS;
|
||||
lines[i].args[2] = lines[i].dx >> FRACBITS;
|
||||
lines[i].args[3] = lines[i].dy >> FRACBITS;
|
||||
}
|
||||
lines[i].args[4] = lines[i].special - 502;
|
||||
lines[i].special = 502;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue