sw/src/player.cpp:PlayerAutoLook: Modify function to

test for PF_MOUSE_AIMING_ON only if PEDANTIC_MODE == FALSE
This commit is contained in:
NY00123 2020-04-11 13:08:20 +03:00 committed by Christoph Oelckers
parent 6d9c657b11
commit d07470ec4a

View file

@ -1830,7 +1830,8 @@ PlayerAutoLook(PLAYERp pp)
if (!TEST(pp->Flags, PF_FLYING|PF_SWIMMING|PF_DIVING|PF_CLIMBING|PF_JUMPING|PF_FALLING))
{
if (!TEST(pp->Flags, PF_MOUSE_AIMING_ON) && TEST(sector[pp->cursectnum].floorstat, FLOOR_STAT_SLOPE)) // If the floor is sloped
if ((PEDANTIC_MODE || !TEST(pp->Flags, PF_MOUSE_AIMING_ON))
&& TEST(sector[pp->cursectnum].floorstat, FLOOR_STAT_SLOPE)) // If the floor is sloped
{
// Get a point, 512 units ahead of player's position
x = pp->posx + (sintable[(fix16_to_int(pp->q16ang) + 512) & 2047] >> 5);