mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-14 08:30:35 +00:00
- Move canslopetilt
test for PlayerAngles::doViewPitch()
.
This commit is contained in:
parent
2162e51424
commit
0dba1af7c0
1 changed files with 2 additions and 2 deletions
|
@ -239,10 +239,10 @@ void PlayerAngles::doYawKeys(InputPacket* const input)
|
|||
|
||||
void PlayerAngles::doViewPitch(const bool canslopetilt, const bool climbing)
|
||||
{
|
||||
if (cl_slopetilting)
|
||||
if (cl_slopetilting && canslopetilt)
|
||||
{
|
||||
const auto actorsect = pActor->sector();
|
||||
if (actorsect && (actorsect->floorstat & CSTAT_SECTOR_SLOPE) && canslopetilt) // If the floor is sloped
|
||||
if (actorsect && (actorsect->floorstat & CSTAT_SECTOR_SLOPE)) // If the floor is sloped
|
||||
{
|
||||
// Get a point, 512 (64 for Blood) units ahead of player's position
|
||||
const auto rotpt = pActor->spr.pos.XY() + pActor->spr.Angles.Yaw.ToVector() * (!isBlood() ? 32 : 4);
|
||||
|
|
Loading…
Reference in a new issue