Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Jones
EDuke32
Commits
62c2ab05
Commit
62c2ab05
authored
Apr 11, 2020
by
NY00123
Browse files
sw/src/player.cpp:PlayerAutoLook: Modify function to
test for PF_MOUSE_AIMING_ON only if PEDANTIC_MODE == FALSE
parent
1972c161
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/sw/src/player.cpp
View file @
62c2ab05
...
...
@@ -1834,7 +1834,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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment