- made AActor::gravity and FMapThing::gravity floats.
This commit is contained in:
parent
7ebb96f15c
commit
1ff4bb419c
18 changed files with 43 additions and 43 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue