engine: server: remove limit on sv_zmax value as it breaks Natural Selection mod
This commit is contained in:
parent
29fd5f9fbe
commit
ab0c0b18c2
1 changed files with 4 additions and 0 deletions
|
@ -189,6 +189,9 @@ void SV_UpdateMovevars( qboolean initialize )
|
||||||
if( !initialize && !host.movevars_changed )
|
if( !initialize && !host.movevars_changed )
|
||||||
return;
|
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
|
// check range
|
||||||
if( sv_zmax.value < 256.0f ) Cvar_SetValue( "sv_zmax", 256.0f );
|
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 )
|
if( sv_zmax.value > 32767.0f )
|
||||||
Cvar_SetValue( "sv_zmax", 32767.0f );
|
Cvar_SetValue( "sv_zmax", 32767.0f );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
svgame.movevars.gravity = sv_gravity.value;
|
svgame.movevars.gravity = sv_gravity.value;
|
||||||
svgame.movevars.stopspeed = sv_stopspeed.value;
|
svgame.movevars.stopspeed = sv_stopspeed.value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue