From e6256d448f6e3292bdc06e383d862bcb018baba0 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 31 Jul 2025 21:23:33 +0200 Subject: [PATCH] TEST: banish LUA_Step checking stuff there never seemed to be any garbage left here so we can just skip this --- src/d_main.c | 2 +- src/lua_script.c | 6 +++--- src/lua_script.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/d_main.c b/src/d_main.c index 17511dad9..50c220115 100644 --- a/src/d_main.c +++ b/src/d_main.c @@ -928,7 +928,7 @@ void D_SRB2Loop(void) // consoleplayer -> displayplayers (hear sounds from viewpoint) S_UpdateSounds(); // move positional sounds - LUA_Step(); + //LUA_Step(); #ifdef HAVE_DISCORDRPC if (!dedicated && renderisnewtic) diff --git a/src/lua_script.c b/src/lua_script.c index de322de2a..332353bfb 100644 --- a/src/lua_script.c +++ b/src/lua_script.c @@ -1189,7 +1189,7 @@ static void UnArchiveTables(UINT8 **p, boolean network) } } -void LUA_Step(void) +/*void LUA_Step(void) { if (!gL) return; @@ -1200,7 +1200,7 @@ void LUA_Step(void) lua_settop(gL, 0); lua_gc(gL, LUA_GCSTEP, 1); } -} +}*/ void LUA_Archive(savebuffer_t *save, boolean network) { @@ -1212,7 +1212,7 @@ void LUA_Archive(savebuffer_t *save, boolean network) for (i = 0; i < MAXPLAYERS; i++) { - if (!playeringame[i] && i > 0) // NEVER skip player 0, this is for dedi servs. + if (!playeringame[i] && i > 0) // NEVER skip player 0, this is for dedi servs. continue; // all players in game will be archived, even if they just add a 0. ArchiveExtVars(&save->p, &players[i], "player"); diff --git a/src/lua_script.h b/src/lua_script.h index 14f5f08ef..932ec510f 100644 --- a/src/lua_script.h +++ b/src/lua_script.h @@ -55,7 +55,7 @@ void LUA_InvalidateUserdata(void *data); void LUA_InvalidateLevel(void); void LUA_InvalidateMapthings(void); void LUA_InvalidatePlayer(player_t *player); -void LUA_Step(void); +//void LUA_Step(void); void LUA_Archive(savebuffer_t *save, boolean network); void LUA_UnArchive(savebuffer_t *save, boolean network);