From e85d296092e65fd5e138b126b538fe56310810dd Mon Sep 17 00:00:00 2001 From: pierow Date: Fri, 15 Sep 2023 15:05:08 -0400 Subject: [PATCH] fix ns_cvar_float returning int --- main/source/mod/AvHServerUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/source/mod/AvHServerUtil.cpp b/main/source/mod/AvHServerUtil.cpp index 857e1dd7..773f874e 100644 --- a/main/source/mod/AvHServerUtil.cpp +++ b/main/source/mod/AvHServerUtil.cpp @@ -1882,6 +1882,6 @@ float ns_cvar_float(const cvar_t *cvar) { return 0; } - return atoi(cvar->string); + return atof(cvar->string); }