mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-28 14:11:13 +00:00
sw/src/player.cpp:PlayerAutoLook: Modify function to
test for PF_MOUSE_AIMING_ON only if PEDANTIC_MODE == FALSE
This commit is contained in:
parent
6d9c657b11
commit
d07470ec4a
1 changed files with 2 additions and 1 deletions
|
@ -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_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
|
// Get a point, 512 units ahead of player's position
|
||||||
x = pp->posx + (sintable[(fix16_to_int(pp->q16ang) + 512) & 2047] >> 5);
|
x = pp->posx + (sintable[(fix16_to_int(pp->q16ang) + 512) & 2047] >> 5);
|
||||||
|
|
Loading…
Reference in a new issue