Skip to content

Commit

Permalink
- fixed scroll speed calculation for Heretic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Oelckers committed May 24, 2016
1 parent d706014 commit d058820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/p_mobj.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit d058820

Please sign in to comment.