This is more efficient

This commit brought to you by 4/20.

git-svn-id: https://svn.eduke32.com/eduke32@7628 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-05-19 03:52:47 +00:00 committed by Christoph Oelckers
parent 78d08b3ac2
commit 74c44125f8

View file

@ -1678,8 +1678,8 @@ void G_ResetTimers(bool saveMoveCnt)
void G_ClearFIFO(void)
{
clearbufbyte(&localInput, sizeof(input_t), 0L);
clearbufbyte(&inputfifo, sizeof(input_t) * MOVEFIFOSIZ * MAXPLAYERS, 0L);
localInput = {};
Bmemset(&inputfifo, 0, sizeof(input_t) * MOVEFIFOSIZ * MAXPLAYERS);
for (int p = 0; p < MAXPLAYERS; ++p)
{