From ab0c0b18c28b2db30512e4780b3378b12afccd08 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 4 Oct 2024 19:07:08 +0300 Subject: [PATCH] engine: server: remove limit on sv_zmax value as it breaks Natural Selection mod --- engine/server/sv_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/server/sv_main.c b/engine/server/sv_main.c index a621c219..c16d119f 100644 --- a/engine/server/sv_main.c +++ b/engine/server/sv_main.c @@ -189,6 +189,9 @@ void SV_UpdateMovevars( qboolean initialize ) if( !initialize && !host.movevars_changed ) return; + // NOTE: this breaks Natural Selection mod on ns_machina map that uses model as sky + // it sets the value to 4000000 that even exceeds the coord limit +#if 0 // check range if( sv_zmax.value < 256.0f ) Cvar_SetValue( "sv_zmax", 256.0f ); @@ -203,6 +206,7 @@ void SV_UpdateMovevars( qboolean initialize ) if( sv_zmax.value > 32767.0f ) Cvar_SetValue( "sv_zmax", 32767.0f ); } +#endif svgame.movevars.gravity = sv_gravity.value; svgame.movevars.stopspeed = sv_stopspeed.value;