From 7e6bc02d4554c0bf086d842266c87a632d6b3e36 Mon Sep 17 00:00:00 2001 From: Mitchell Richters <mjr4077au@gmail.com> Date: Thu, 24 Nov 2022 08:56:48 +1100 Subject: [PATCH] - Make `stat coord` show full floating point values. --- source/core/gamecvars.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/core/gamecvars.cpp b/source/core/gamecvars.cpp index b10f3bf4f..358e02ff9 100644 --- a/source/core/gamecvars.cpp +++ b/source/core/gamecvars.cpp @@ -239,10 +239,10 @@ ADD_STAT(coord) FString out; if (coord.first.X < DBL_MAX) { - out.AppendFormat("X: %d ", int(coord.first.X)); - out.AppendFormat("Y: %d ", int(coord.first.Y)); - out.AppendFormat("Z: %d ", int(coord.first.Z)); - out.AppendFormat("Angle: %d\n", int(coord.second.Degrees())); + out.AppendFormat("X: %f ", coord.first.X); + out.AppendFormat("Y: %f ", coord.first.Y); + out.AppendFormat("Z: %f ", coord.first.Z); + out.AppendFormat("Angle: %f\n", coord.second.Degrees()); } return out; }