mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed scroll speed calculation for Heretic.
This commit is contained in:
parent
d70601471a
commit
d058820c65
1 changed files with 2 additions and 2 deletions
|
@ -3560,10 +3560,10 @@ void AActor::Tick ()
|
|||
scrolltype -= Carry_East5;
|
||||
BYTE dir = HereticScrollDirs[scrolltype / 5];
|
||||
double carryspeed = HereticSpeedMuls[scrolltype % 5] * (1. / (32 * CARRYFACTOR));
|
||||
if (scrolltype<=Carry_East35 && !(i_compatflags&COMPATF_RAVENSCROLL))
|
||||
if (scrolltype < 5 && !(i_compatflags&COMPATF_RAVENSCROLL))
|
||||
{
|
||||
// Use speeds that actually match the scrolling textures!
|
||||
carryspeed = (1 << ((scrolltype%5) - 1));
|
||||
carryspeed = (1 << ((scrolltype % 5) + 15)) / 65536.;
|
||||
}
|
||||
scrollv.X += carryspeed * ((dir & 3) - 1);
|
||||
scrollv.Y += carryspeed * (((dir & 12) >> 2) - 1);
|
||||
|
|
Loading…
Reference in a new issue