Skip to content

Commit 6fa1f50

Browse files
committed
- Use maphoriz() to document a horiz constant in Exhumed.
1 parent c5a7934 commit 6fa1f50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/games/exhumed/src/player.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,11 +1995,12 @@ static void doPlayerDeathPitch(DExhumedPlayer* const pPlayer)
19951995
}
19961996
else
19971997
{
1998+
static const DAngle maxPitch = -maphoriz(108);
19981999
pPlayerActor->spr.Angles.Pitch -= maphoriz(pPlayer->dVertPan);
19992000

2000-
if (pPlayerActor->spr.Angles.Pitch.Degrees() <= -40.156)
2001+
if (pPlayerActor->spr.Angles.Pitch <= maxPitch)
20012002
{
2002-
pPlayerActor->spr.Angles.Pitch = DAngle::fromDeg(-40.156);
2003+
pPlayerActor->spr.Angles.Pitch = maxPitch;
20032004
}
20042005
else if (pPlayerActor->spr.Angles.Pitch.Sgn() >= 0 && !(pPlayerActor->sector()->Flag & kSectUnderwater))
20052006
{

0 commit comments

Comments
 (0)