mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Funny mode fixes
This commit is contained in:
parent
062ac4ccf7
commit
ed61140504
4 changed files with 7 additions and 2 deletions
|
|
@ -5531,7 +5531,7 @@ boolean TryRunTics(tic_t realtics)
|
||||||
ps_tictime = I_GetPreciseTime();
|
ps_tictime = I_GetPreciseTime();
|
||||||
|
|
||||||
G_Ticker((gametic % NEWTICRATERATIO) == 0);
|
G_Ticker((gametic % NEWTICRATERATIO) == 0);
|
||||||
if (gametic % TICRATE == 0)
|
if (Playing() && (gametic % TICRATE == 0))
|
||||||
{
|
{
|
||||||
Schedule_Run();
|
Schedule_Run();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -604,7 +604,7 @@ const char *automate_names[AEV__MAX] =
|
||||||
"VoteStart" // AEV_VOTESTART
|
"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
|
/// \warning Keep this up-to-date if you add/remove/rename net text commands
|
||||||
const char *netxcmdnames[MAXNETXCMD - 1] =
|
const char *netxcmdnames[MAXNETXCMD - 1] =
|
||||||
|
|
|
||||||
|
|
@ -276,6 +276,7 @@ void Automate_Run(automateEvents_t type);
|
||||||
void Automate_Set(automateEvents_t type, const char *command);
|
void Automate_Set(automateEvents_t type, const char *command);
|
||||||
void Automate_Clear(void);
|
void Automate_Clear(void);
|
||||||
|
|
||||||
|
extern UINT32 livestudioaudience_timer;
|
||||||
void LiveStudioAudience(void);
|
void LiveStudioAudience(void);
|
||||||
|
|
||||||
// used for the player setup menu
|
// used for the player setup menu
|
||||||
|
|
|
||||||
|
|
@ -4553,6 +4553,8 @@ static void P_NetArchiveMisc(boolean resending)
|
||||||
else
|
else
|
||||||
WRITEUINT8(save_p, 0x2e);
|
WRITEUINT8(save_p, 0x2e);
|
||||||
|
|
||||||
|
WRITEUINT32(save_p, livestudioaudience_timer);
|
||||||
|
|
||||||
// Only the server uses this, but it
|
// Only the server uses this, but it
|
||||||
// needs synched for remote admins anyway.
|
// needs synched for remote admins anyway.
|
||||||
WRITEUINT32(save_p, schedule_len);
|
WRITEUINT32(save_p, schedule_len);
|
||||||
|
|
@ -4712,6 +4714,8 @@ static inline boolean P_NetUnArchiveMisc(boolean reloading)
|
||||||
if (READUINT8(save_p) == 0x2f)
|
if (READUINT8(save_p) == 0x2f)
|
||||||
paused = true;
|
paused = true;
|
||||||
|
|
||||||
|
livestudioaudience_timer = READUINT32(save_p);
|
||||||
|
|
||||||
// Only the server uses this, but it
|
// Only the server uses this, but it
|
||||||
// needs synched for remote admins anyway.
|
// needs synched for remote admins anyway.
|
||||||
Schedule_Clear();
|
Schedule_Clear();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue