From 970130e02bb3151a060b6da3ddf4bd7e3b5a81c1 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 ddf938330..4923a9f6e 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -4980,9 +4980,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 183c42a4b..379451a92 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; // @@ -676,6 +679,9 @@ void P_Ticker(boolean run) if (run) { + // Dynamic slopeness + P_RunDynamicSlopes(); + PS_START_TIMING(ps_thinkertime); P_RunThinkers(); PS_STOP_TIMING(ps_thinkertime); @@ -892,6 +898,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