From 74c44125f8811e8d250111899352d499bf00b31f Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 19 May 2019 03:52:47 +0000 Subject: [PATCH] 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 --- source/duke3d/src/premap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/premap.cpp b/source/duke3d/src/premap.cpp index dd527871c..4452abf6c 100644 --- a/source/duke3d/src/premap.cpp +++ b/source/duke3d/src/premap.cpp @@ -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) {