From 2b30ae6ccdcff873b76b4f9f4bc8aab5c85fbcb6 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 10 Jan 2019 18:02:23 +0100 Subject: [PATCH] - fixed misplaced variable initialization. --- src/win32/i_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index f867ecac17..0de32af3a0 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -1098,6 +1098,7 @@ void DoomSpecificInfo (char *buffer, size_t bufflen) buffer += mysnprintf (buffer, buffend - buffer, "\r\nWad %d: %s", i, arg); } + auto &vp = r_viewpoint; if (gamestate != GS_LEVEL && gamestate != GS_TITLELEVEL) { buffer += mysnprintf (buffer, buffend - buffer, "\r\n\r\nNot in a map."); @@ -1112,7 +1113,6 @@ void DoomSpecificInfo (char *buffer, size_t bufflen) } else { - auto &vp = r_viewpoint; buffer += mysnprintf (buffer, buffend - buffer, "\r\n\r\nviewx = %f", vp.Pos.X); buffer += mysnprintf (buffer, buffend - buffer, "\r\nviewy = %f", vp.Pos.Y); buffer += mysnprintf (buffer, buffend - buffer, "\r\nviewz = %f", vp.Pos.Z);