- floatified P_ChangeSector.

This commit is contained in:
Christoph Oelckers 2016-03-27 22:35:58 +02:00
parent fe744a589c
commit 8b4a33794a
4 changed files with 46 additions and 49 deletions

View file

@ -2619,12 +2619,11 @@ void P_ZMovement (AActor *mo, fixed_t oldfloorz)
}
}
}
P_CheckFakeFloorTriggers (mo, oldz);
P_CheckFakeFloorTriggers (mo, FIXED2DBL(oldz));
}
void P_CheckFakeFloorTriggers (AActor *mo, fixed_t _oldz, bool oldz_has_viewheight)
void P_CheckFakeFloorTriggers (AActor *mo, double oldz, bool oldz_has_viewheight)
{
double oldz = FIXED2FLOAT(_oldz);
if (mo->player && (mo->player->cheats & CF_PREDICTING))
{
return;