- fixed scroll speed calculation for Heretic.

This commit is contained in:
Christoph Oelckers 2016-05-24 10:01:57 +02:00
parent d70601471a
commit d058820c65
1 changed files with 2 additions and 2 deletions

View File

@ -3560,10 +3560,10 @@ void AActor::Tick ()
scrolltype -= Carry_East5; scrolltype -= Carry_East5;
BYTE dir = HereticScrollDirs[scrolltype / 5]; BYTE dir = HereticScrollDirs[scrolltype / 5];
double carryspeed = HereticSpeedMuls[scrolltype % 5] * (1. / (32 * CARRYFACTOR)); 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! // 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.X += carryspeed * ((dir & 3) - 1);
scrollv.Y += carryspeed * (((dir & 12) >> 2) - 1); scrollv.Y += carryspeed * (((dir & 12) >> 2) - 1);