From 5a8062abba7b5746d8c0ef8cb4160ce95a663ce2 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 16 Jan 2016 09:05:46 +0100 Subject: [PATCH] - fixed copy/paste error in secmovefac. (It returned friction instead of movefactor...) --- src/p_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index 30cec2ad2..4132e90b5 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -545,7 +545,7 @@ inline fixed_t secfriction(const sector_t *sec, int plane = sector_t::floor) inline fixed_t secmovefac(const sector_t *sec, int plane = sector_t::floor) { - if (sec->Flags & SECF_FRICTION) return sec->friction; + if (sec->Flags & SECF_FRICTION) return sec->movefactor; fixed_t movefactor = Terrains[sec->GetTerrain(plane)].MoveFactor; return movefactor != 0 ? movefactor : ORIG_FRICTION_FACTOR; }