From 20782693f45f7e90c4d57b446ed9c5d7d579db91 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 28 Apr 2024 03:57:06 +0300 Subject: [PATCH] engine: server: rename symbols for svs, sv and SV_DropClient to avoid AMXModX trying to acquire their pointers --- engine/server/server.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/server/server.h b/engine/server/server.h index 476f42ca..69d3eda5 100644 --- a/engine/server/server.h +++ b/engine/server/server.h @@ -392,10 +392,10 @@ typedef struct //============================================================================= -extern server_static_t svs; // persistant server info -extern server_t sv; // local server -extern svgame_static_t svgame; // persistant game info -extern areanode_t sv_areanodes[]; // AABB dynamic tree +extern server_static_t svs RENAME_SYMBOL( "svs_" ); // persistant server info +extern server_t sv RENAME_SYMBOL( "sv_" ); // local server +extern svgame_static_t svgame; // persistant game info +extern areanode_t sv_areanodes[]; // AABB dynamic tree extern convar_t mp_logecho; extern convar_t mp_logfile; @@ -480,7 +480,7 @@ extern convar_t sv_aim; // void SV_FinalMessage( const char *message, qboolean reconnect ); void SV_KickPlayer( sv_client_t *cl, const char *fmt, ... ) _format( 2 ); -void SV_DropClient( sv_client_t *cl, qboolean crash ); +void SV_DropClient( sv_client_t *cl, qboolean crash ) RENAME_SYMBOL( "SV_DropClient_" ); void SV_UpdateMovevars( qboolean initialize ); int SV_ModelIndex( const char *name ); int SV_SoundIndex( const char *name );