Skip to content

Commit

Permalink
disable -speed parameter for netgame
Browse files Browse the repository at this point in the history
Though custom speed works in -oldsync mode.
  • Loading branch information
rfomin committed Aug 11, 2022
1 parent 6b4ff8f commit aea87eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2512,6 +2512,8 @@ void D_DoomMain(void)
puts("D_CheckNetGame: Checking network game status.");
D_CheckNetGame();

M_ResetTimeScale();

puts("S_Init: Setting up sound.");
S_Init(snd_SfxVolume /* *8 */, snd_MusicVolume /* *8*/ );

Expand Down
5 changes: 2 additions & 3 deletions src/m_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3847,9 +3847,9 @@ static void M_UpdateStrictModeItems(void)
DISABLE_STRICT(gen_settings3[general_screen_melt]);
}

static void M_ResetTimeScale(void)
void M_ResetTimeScale(void)
{
if (strictmode)
if (strictmode || D_CheckNetConnect())
I_SetTimeScale(100);
else
{
Expand Down Expand Up @@ -6831,7 +6831,6 @@ void M_ResetSetupMenu(void)
M_UpdateCenteredWeaponItem();
M_UpdateMultiLineMsgItem();
M_UpdateStrictModeItems();
M_ResetTimeScale();
M_Trans();
}

Expand Down
2 changes: 2 additions & 0 deletions src/m_menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ void M_ResetSetupMenu(void);

void M_ResetSetupMenuVideo(void);

void M_ResetTimeScale(void);

void M_DrawBackground(char *patch, byte *screen); // killough 11/98

void M_DrawCredits(void); // killough 11/98
Expand Down

0 comments on commit aea87eb

Please sign in to comment.