mitigate dynamic slope desynchs

Perform dynamic slope thinking before other thinkers.
This commit is contained in:
Alug committed 2024-07-10 05:22:38 +02:00
1 parent e9d3c1a421
commit 9108d64820
2 files changed
+9 -3

No files matched your search

-3
View File
@@ -4983,9 +4983,6 @@ void P_UpdateSpecials(void)
// POINT LIMIT
P_CheckPointLimit();
// Dynamic slopeness
P_RunDynamicSlopes();
// ANIMATE TEXTURES
for (anim = anims; anim < lastanim; anim++)
{
+9
View File
@@ -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