mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-14 16:40:56 +00:00
- A player's Speed is now applied to their upmove as well as their forwardmove and sidemove.
SVN r4195 (trunk)
This commit is contained in:
parent
2874d927b1
commit
e4127111b1
1 changed files with 2 additions and 2 deletions
|
@ -2103,7 +2103,7 @@ void P_PlayerThink (player_t *player)
|
||||||
player->ReadyWeapon != NULL && // No adjustment if no weapon.
|
player->ReadyWeapon != NULL && // No adjustment if no weapon.
|
||||||
player->ReadyWeapon->FOVScale != 0) // No adjustment if the adjustment is zero.
|
player->ReadyWeapon->FOVScale != 0) // No adjustment if the adjustment is zero.
|
||||||
{
|
{
|
||||||
// A negative scale is used top prevent G_AddViewAngle/G_AddViewPitch
|
// A negative scale is used to prevent G_AddViewAngle/G_AddViewPitch
|
||||||
// from scaling with the FOV scale.
|
// from scaling with the FOV scale.
|
||||||
desired *= fabs(player->ReadyWeapon->FOVScale);
|
desired *= fabs(player->ReadyWeapon->FOVScale);
|
||||||
}
|
}
|
||||||
|
@ -2373,7 +2373,7 @@ void P_PlayerThink (player_t *player)
|
||||||
}
|
}
|
||||||
if (player->mo->waterlevel >= 2 || (player->mo->flags2 & MF2_FLY) || (player->cheats & CF_NOCLIP2))
|
if (player->mo->waterlevel >= 2 || (player->mo->flags2 & MF2_FLY) || (player->cheats & CF_NOCLIP2))
|
||||||
{
|
{
|
||||||
player->mo->velz = cmd->ucmd.upmove << 9;
|
player->mo->velz = FixedMul(player->mo->Speed, cmd->ucmd.upmove << 9);
|
||||||
if (player->mo->waterlevel < 2 && !(player->mo->flags & MF_NOGRAVITY))
|
if (player->mo->waterlevel < 2 && !(player->mo->flags & MF_NOGRAVITY))
|
||||||
{
|
{
|
||||||
player->mo->flags2 |= MF2_FLY;
|
player->mo->flags2 |= MF2_FLY;
|
||||||
|
|
Loading…
Reference in a new issue