2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-26 02:36:08 +01:00

engine: server: remove limit on sv_zmax value as it breaks Natural Selection mod

This commit is contained in:
Alibek Omarov 2024-10-04 19:07:08 +03:00
parent 29fd5f9fbe
commit ab0c0b18c2

View File

@ -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;