- Clean out where Net_ClearFifo() is called.

* We can do this from one place and achieve the same result as having it sprinkled everywhere did.
This commit is contained in:
Mitchell Richters 2023-03-29 09:04:38 +11:00
parent 96055fbc03
commit d665037075
5 changed files with 1 additions and 6 deletions

View file

@ -155,7 +155,6 @@ void NewGame(MapRecord* map, int skill, bool ns = false)
gi->NewGame(map, skill, ns);
gameaction = ga_level;
ResetStatusBar();
Net_ClearFifo();
});
}
@ -206,7 +205,6 @@ static void GameTicker()
gameaction = ga_level;
gi->NextLevel(g_nextmap, g_nextskill);
ResetStatusBar();
Net_ClearFifo();
break;
case ga_newgame:
@ -267,6 +265,7 @@ static void GameTicker()
break;
case ga_level:
Net_ClearFifo();
gamestate = GS_LEVEL;
break;

View file

@ -360,7 +360,6 @@ void StartLevel(MapRecord* level, bool newgame)
if (!gPlayer[myconnectindex].packSlots[1].isActive) // if diving suit is not active, turn off reverb sound effect
sfxSetReverb(0);
ambInit();
Net_ClearFifo();
gChokeCounter = 0;
M_ClearMenus();
// viewSetMessage("");

View file

@ -766,7 +766,6 @@ void GameInterface::SerializeGameState(FSerializer& arc)
for (int i = 0; i < gNetPlayers; i++)
playerSetRace(&gPlayer[i], gPlayer[i].lifeMode);
viewSetErrorMessage("");
Net_ClearFifo();
paused = 0;
Mus_ResumeSaved();
}

View file

@ -113,7 +113,6 @@ bool GameInterface::StartGame(FNewGameStartup& gs)
soundEngine->UpdateSounds(I_GetTime());
I_GetEvent();
}
Net_ClearFifo();
}
return true;
}

View file

@ -122,7 +122,6 @@ bool GameInterface::StartGame(FNewGameStartup& gs)
soundEngine->UpdateSounds(I_GetTime());
I_GetEvent();
}
Net_ClearFifo();
}
return true;
}