Permalink
Browse files

- fixed misplaced variable initialization.

  • Loading branch information...
coelckers committed Jan 10, 2019
1 parent 5dbd81e commit 2b30ae6ccdcff873b76b4f9f4bc8aab5c85fbcb6
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 2b30ae6

Please sign in to comment.