From 34e4cf123d45d6b54c21bc95dc1bad1091cf7fe6 Mon Sep 17 00:00:00 2001 From: Monster Iestyn Date: Mon, 17 Jun 2019 18:46:51 +0100 Subject: [PATCH] Fix FOF slopes briefly glitching on level load in software mode, by ensuring the FOFs' target sectors have hasslope set on creation --- src/p_spec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_spec.c b/src/p_spec.c index a7a7f89f3..a21827e1c 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -4767,6 +4767,11 @@ static ffloor_t *P_AddFakeFloor(sector_t *sec, sector_t *sec2, line_t *master, f ffloor->t_slope = &sec2->c_slope; ffloor->b_slope = &sec2->f_slope; + // mark the target sector as having slopes, if the FOF has any of its own + // (this fixes FOF slopes glitching initially at level load in software mode) + if (sec2->hasslope) + sec->hasslope = true; + if ((flags & FF_SOLID) && (master->flags & ML_EFFECT1)) // Block player only flags &= ~FF_BLOCKOTHERS;