From 661285d3c64cedc22c630fe70e72fc44e66e02b2 Mon Sep 17 00:00:00 2001 From: toaster Date: Fri, 14 Apr 2023 17:18:11 +0100 Subject: [PATCH] Fix custom terrain footsteps never being considered under offroad conditions --- src/k_terrain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/k_terrain.c b/src/k_terrain.c index e4f311a11..f9194835f 100644 --- a/src/k_terrain.c +++ b/src/k_terrain.c @@ -979,10 +979,10 @@ void K_HandleFootstepParticles(mobj_t *mo) // No TERRAIN effects for this object. return; } - - fs = K_GetFootstepByIndex(mo->terrain->footstepID); } + fs = K_GetFootstepByIndex(mo->terrain->footstepID); + if (mo->player != NULL) { // Match behaviour of the previous entry in the series: