From 110f22edb1defdeaa39f57d88bb28227e660a102 Mon Sep 17 00:00:00 2001 From: Ensiform Date: Mon, 2 Dec 2024 19:19:06 -0600 Subject: [PATCH] Fix win_glimp and sv_game compilation --- src/server/sv_game.c | 2 +- src/win32/win_glimp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/sv_game.c b/src/server/sv_game.c index efc8b5a4..b64a33f6 100644 --- a/src/server/sv_game.c +++ b/src/server/sv_game.c @@ -557,7 +557,7 @@ static intptr_t SV_GameSystemCalls( intptr_t *args ) { return 0; case G_GET_ENTITY_TOKEN: { - const char *s = COM_Parse( &sv.entityParsePoint ); + char *s = (char *)COM_Parse( &sv.entityParsePoint ); //Q_strncpyz( VMA(1), s, args[2] ); // we can't use our optimized Q_strncpyz() function // because of uninitialized memory bug in defrag mod diff --git a/src/win32/win_glimp.c b/src/win32/win_glimp.c index d422282f..d073f0e2 100644 --- a/src/win32/win_glimp.c +++ b/src/win32/win_glimp.c @@ -1028,7 +1028,7 @@ static rserr_t GLW_SetMode( int mode, const char *modeFS, int colorbits, qboolea // // print out informational messages // - if ( fullscreen && *modeFS ) + if ( cdsFullscreen && *modeFS ) Com_Printf( "...setting mode %d:", atoi(modeFS) ); else Com_Printf( "...setting mode %d:", mode );