summaryrefslogtreecommitdiff
path: root/src/strife/p_user.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/strife/p_user.c')
-rw-r--r--src/strife/p_user.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/strife/p_user.c b/src/strife/p_user.c
index 25a80ff9..9d44f78c 100644
--- a/src/strife/p_user.c
+++ b/src/strife/p_user.c
@@ -137,6 +137,10 @@ void P_CalcHeight (player_t* player)
}
player->viewz = player->mo->z + player->viewheight + bob;
+ // villsa [STRIFE] TODO - verify
+ if(player->mo->flags & MF_FEETCLIPPED)
+ player->viewz -= (13*FRACUNIT);
+
if (player->viewz > player->mo->ceilingz-4*FRACUNIT)
player->viewz = player->mo->ceilingz-4*FRACUNIT;
}