Funny mode fixes

This commit is contained in:
Sally Coolatta 2022-09-14 05:13:26 -04:00
parent 062ac4ccf7
commit ed61140504
4 changed files with 7 additions and 2 deletions

View file

@ -5531,7 +5531,7 @@ boolean TryRunTics(tic_t realtics)
ps_tictime = I_GetPreciseTime();
G_Ticker((gametic % NEWTICRATERATIO) == 0);
if (gametic % TICRATE == 0)
if (Playing() && (gametic % TICRATE == 0))
{
Schedule_Run();

View file

@ -604,7 +604,7 @@ const char *automate_names[AEV__MAX] =
"VoteStart" // AEV_VOTESTART
};
static UINT32 livestudioaudience_timer = 90;
UINT32 livestudioaudience_timer = 90;
/// \warning Keep this up-to-date if you add/remove/rename net text commands
const char *netxcmdnames[MAXNETXCMD - 1] =

View file

@ -276,6 +276,7 @@ void Automate_Run(automateEvents_t type);
void Automate_Set(automateEvents_t type, const char *command);
void Automate_Clear(void);
extern UINT32 livestudioaudience_timer;
void LiveStudioAudience(void);
// used for the player setup menu

View file

@ -4553,6 +4553,8 @@ static void P_NetArchiveMisc(boolean resending)
else
WRITEUINT8(save_p, 0x2e);
WRITEUINT32(save_p, livestudioaudience_timer);
// Only the server uses this, but it
// needs synched for remote admins anyway.
WRITEUINT32(save_p, schedule_len);
@ -4712,6 +4714,8 @@ static inline boolean P_NetUnArchiveMisc(boolean reloading)
if (READUINT8(save_p) == 0x2f)
paused = true;
livestudioaudience_timer = READUINT32(save_p);
// Only the server uses this, but it
// needs synched for remote admins anyway.
Schedule_Clear();