From 9108d64820bf043d86342ca3740f1f1dc08ad6e5 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 2 Jul 2024 03:00:01 +0200 Subject: [PATCH] mitigate dynamic slope desynchs Perform dynamic slope thinking before other thinkers. --- src/p_spec.c | 3 --- src/p_tick.c | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index 734cc4113..5cb9ec61c 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -4983,9 +4983,6 @@ void P_UpdateSpecials(void) // POINT LIMIT P_CheckPointLimit(); - // Dynamic slopeness - P_RunDynamicSlopes(); - // ANIMATE TEXTURES for (anim = anims; anim < lastanim; anim++) { diff --git a/src/p_tick.c b/src/p_tick.c index 5ad66c679..0ca311c6e 100644 --- a/src/p_tick.c +++ b/src/p_tick.c @@ -32,6 +32,9 @@ // Object place #include "m_cheat.h" +// Dynamic slopes +#include "p_slopes.h" + tic_t leveltime; // @@ -682,6 +685,9 @@ void P_Ticker(boolean run) if (run) { + // Dynamic slopeness + P_RunDynamicSlopes(); + PS_START_TIMING(ps_thinkertime); P_RunThinkers(); PS_STOP_TIMING(ps_thinkertime); @@ -898,6 +904,9 @@ void P_PreTicker(INT32 frames) memcpy(&players[i].cmd, &temptic, sizeof(ticcmd_t)); } + // Dynamic slopeness + P_RunDynamicSlopes(); + P_RunThinkers(); // Run any "after all the other thinkers" stuff