From d07470ec4a896a42d21b718074060e194808a5ac Mon Sep 17 00:00:00 2001 From: NY00123 Date: Sat, 11 Apr 2020 13:08:20 +0300 Subject: [PATCH] sw/src/player.cpp:PlayerAutoLook: Modify function to test for PF_MOUSE_AIMING_ON only if PEDANTIC_MODE == FALSE --- source/sw/src/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index a035889a6..ef4f043a4 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -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);