diff --git a/changelog.txt b/changelog.txt index a73f571..e500b0b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,7 +2,7 @@ See the end of this file for known issues. -29 Sep 23 - 1.53 +30 Oct 23 - 1.53 add: /registerdemos adds Windows file associations for demo files (.dm_68 .dm_67 .dm_66) /unregisterdemos removes Windows file associations for demo files diff --git a/code/qcommon/cvar.cpp b/code/qcommon/cvar.cpp index 6281466..dabed5c 100644 --- a/code/qcommon/cvar.cpp +++ b/code/qcommon/cvar.cpp @@ -794,7 +794,7 @@ void Cvar_SetValue( const char *var_name, float value ) if ( value == (int)value ) { Cvar_Set( var_name, va("%i", (int)value) ); } else { - Cvar_Set( var_name, va("%f", value) ); + Cvar_Set( var_name, va("%g", value) ); } } @@ -1037,7 +1037,7 @@ static void Cvar_ExecuteOp( qbool multiply ) const float fValU = multiply ? ( cvar->value * fTemp ) : ( cvar->value + fTemp ); const float fValC = Com_Clamp( cvar->validator.f.min, cvar->validator.f.max, fValU ); - Cvar_Set( Cmd_Argv(1), va("%f", fValC) ); + Cvar_Set( Cmd_Argv(1), va("%g", fValC) ); } }