fix ns_cvar_float returning int

This commit is contained in:
pierow 2023-09-15 15:05:08 -04:00
parent ca5246501b
commit e85d296092

View file

@ -1882,6 +1882,6 @@ float ns_cvar_float(const cvar_t *cvar)
{ {
return 0; return 0;
} }
return atoi(cvar->string); return atof(cvar->string);
} }