- made AActor::gravity and FMapThing::gravity floats.

This commit is contained in:
Christoph Oelckers 2016-03-21 00:51:19 +01:00
commit 1ff4bb419c
18 changed files with 43 additions and 43 deletions

View file

@ -3531,9 +3531,9 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_PlayerSkinCheck)
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_SetGravity)
{
PARAM_ACTION_PROLOGUE;
PARAM_FIXED(gravity);
PARAM_FLOAT(gravity);
self->gravity = clamp<fixed_t>(gravity, 0, FRACUNIT*10);
self->Gravity = clamp(gravity, 0., 10.);
return 0;
}