From 5bcdc7d8892cb9ba5087571658bd7358e3ed0205 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 12 Mar 2017 18:56:48 +0100 Subject: [PATCH] Fix compile error on Linux --- src/posix/sdl/i_main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/posix/sdl/i_main.cpp b/src/posix/sdl/i_main.cpp index 90b11ef25..7fe5aeb08 100644 --- a/src/posix/sdl/i_main.cpp +++ b/src/posix/sdl/i_main.cpp @@ -170,10 +170,10 @@ static int DoomSpecificInfo (char *buffer, char *end) } else { - p += snprintf (buffer+p, size-p, "\n\nviewx = %f", ViewPos.X); - p += snprintf (buffer+p, size-p, "\nviewy = %f", ViewPos.Y); - p += snprintf (buffer+p, size-p, "\nviewz = %f", ViewPos.Z); - p += snprintf (buffer+p, size-p, "\nviewangle = %f", ViewAngle.Degrees); + p += snprintf (buffer+p, size-p, "\n\nviewx = %f", r_viewpoint.Pos.X); + p += snprintf (buffer+p, size-p, "\nviewy = %f", r_viewpoint.Pos.Y); + p += snprintf (buffer+p, size-p, "\nviewz = %f", r_viewpoint.Pos.Z); + p += snprintf (buffer+p, size-p, "\nviewangle = %f", r_viewpoint.Angles.Yaw.Degrees); } } buffer[p++] = '\n';