- don't read the full height of a player from the defaults, because that cannot be changed by A_SetHeight.

Instead a new member, FullHeight is used for this now.
This commit is contained in:
Christoph Oelckers 2017-01-24 00:12:06 +01:00
commit 17ed23bfcc
4 changed files with 13 additions and 5 deletions

View file

@ -6906,6 +6906,10 @@ DEFINE_ACTION_FUNCTION(AActor, A_SetSize)
self->LinkToWorld(&ctx);
ACTION_RETURN_BOOL(false);
}
if (self->player && self->player->mo == self)
{
self->player->mo->FullHeight = newheight;
}
ACTION_RETURN_BOOL(true);
}