PMoveCustom_: Check for MOVETYPE_NONE and disable any further interaction.

This commit is contained in:
Marco Cawthorne 2022-06-08 11:39:28 -07:00
parent ad093548b5
commit 460eec7f76
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 7 additions and 1 deletions

View File

@ -564,6 +564,9 @@ PMoveCustom_Move(void)
void
PMoveCustom_RunPlayerPhysics(entity target)
{
if (target.movetype == MOVETYPE_NONE)
return;
entity oldself = self;
self = target;
@ -595,6 +598,9 @@ PMoveCustom_RunPlayerPhysics(entity target)
void
PMoveCustom_RunCrouchPhysics(entity target)
{
if (target.movetype == MOVETYPE_NONE)
return;
int iFixCrouch = FALSE;
if (input_buttons & INPUT_BUTTON8) {
target.flags |= FL_CROUCHING;