skip a bunch of stuff in dedi/render_none

This commit is contained in:
Alug committed 2025-02-17 20:54:37 +01:00
1 parent 95f797fcda
commit 15f97ab8a4
3 files changed
+12 -2

No files matched your search

+4 -1
View File
@@ -184,6 +184,9 @@ static void D_GamePadMenuScrollTicker(void)
static SINT8 menuInputDelayTimer = 0;
int key = 0; // butt-on output
if (dedicated)
return;
// wish i had a switch ono
if (DPADUPSCROLL)
key = KEY_UPARROW;
@@ -215,7 +218,7 @@ static void D_DeviceLEDTick(void)
UINT16 color[MAXSPLITSCREENPLAYERS];
UINT16 curcolor[MAXSPLITSCREENPLAYERS];
if (I_NumJoys() == 0)
if (dedicated || I_NumJoys() == 0)
{
return;
}
+4
View File
@@ -6100,6 +6100,10 @@ static void P_KoopaThinker(mobj_t *koopa)
//
void P_RollPitchMobj(mobj_t* mobj)
{
// we dont need this in dedi do we?
if (rendermode == render_none)
return;
if (P_MobjWasRemoved(mobj))
return;
+4 -1
View File
@@ -368,7 +368,7 @@ static void P_DeviceRumbleTick(void)
{
UINT8 i;
if (I_NumJoys() == 0 || gamestate != GS_LEVEL)
if (dedicated || I_NumJoys() == 0 || gamestate != GS_LEVEL)
{
return;
}
@@ -520,6 +520,9 @@ static inline void P_ResetSpriteStuff(void)
{
thinker_t *th;
if (rendermode == render_none)
return;
for (th = thinkercap.next; th != &thinkercap; th = th->next)
{
mobj_t *mo;