diff --git a/src/playsim/p_spec.cpp b/src/playsim/p_spec.cpp index 80a506f25..97b2cf82b 100644 --- a/src/playsim/p_spec.cpp +++ b/src/playsim/p_spec.cpp @@ -625,7 +625,7 @@ void P_PlayerOnSpecialFlat (player_t *player, int floorType) auto Level = player->mo->Level; if (Terrains[floorType].DamageAmount && - !(Level->time & Terrains[floorType].DamageTimeMask)) + !(Level->time % (Terrains[floorType].DamageTimeMask+1))) { AActor *ironfeet = NULL;