From bcfb7bb2b4b0856a60d217e2e1d5194ba2145568 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Wed, 31 Dec 2025 10:39:15 +0900 Subject: [PATCH] fix --- .gitignore | 1 + src/gl.c | 2 ++ src/net_dgrm.c | 8 ++++---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index fc1f6ab..1de3bda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.o /mwquake +/id1/mwquake diff --git a/src/gl.c b/src/gl.c index 95d1681..2ee7bc9 100644 --- a/src/gl.c +++ b/src/gl.c @@ -439,6 +439,8 @@ void VID_Init(unsigned char *palette) vid.colormap = host_colormap; vid.fullbright = 256 - LittleLong (*((int *)vid.colormap + 2048)); + MwLibraryInit(); + // interpret command-line params // set vid parameters diff --git a/src/net_dgrm.c b/src/net_dgrm.c index 0985eea..f62d15b 100644 --- a/src/net_dgrm.c +++ b/src/net_dgrm.c @@ -516,10 +516,10 @@ static int testPollCount; static int testDriver; static int testSocket; -static void Test_Poll(void); +static void Test_Poll(void* arg); PollProcedure testPollProcedure = {NULL, 0.0, Test_Poll}; -static void Test_Poll(void) +static void Test_Poll(void* arg) { struct qsockaddr clientaddr; int control; @@ -644,10 +644,10 @@ static qboolean test2InProgress = qfalse; static int test2Driver; static int test2Socket; -static void Test2_Poll(void); +static void Test2_Poll(void* arg); PollProcedure test2PollProcedure = {NULL, 0.0, Test2_Poll}; -static void Test2_Poll(void) +static void Test2_Poll(void* arg) { struct qsockaddr clientaddr; int control;