mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- fixed misplaced variable initialization.
This commit is contained in:
parent
5dbd81ea7f
commit
2b30ae6ccd
1 changed files with 1 additions and 1 deletions
|
@ -1098,6 +1098,7 @@ void DoomSpecificInfo (char *buffer, size_t bufflen)
|
||||||
buffer += mysnprintf (buffer, buffend - buffer, "\r\nWad %d: %s", i, arg);
|
buffer += mysnprintf (buffer, buffend - buffer, "\r\nWad %d: %s", i, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto &vp = r_viewpoint;
|
||||||
if (gamestate != GS_LEVEL && gamestate != GS_TITLELEVEL)
|
if (gamestate != GS_LEVEL && gamestate != GS_TITLELEVEL)
|
||||||
{
|
{
|
||||||
buffer += mysnprintf (buffer, buffend - buffer, "\r\n\r\nNot in a map.");
|
buffer += mysnprintf (buffer, buffend - buffer, "\r\n\r\nNot in a map.");
|
||||||
|
@ -1112,7 +1113,6 @@ void DoomSpecificInfo (char *buffer, size_t bufflen)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto &vp = r_viewpoint;
|
|
||||||
buffer += mysnprintf (buffer, buffend - buffer, "\r\n\r\nviewx = %f", vp.Pos.X);
|
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\nviewy = %f", vp.Pos.Y);
|
||||||
buffer += mysnprintf (buffer, buffend - buffer, "\r\nviewz = %f", vp.Pos.Z);
|
buffer += mysnprintf (buffer, buffend - buffer, "\r\nviewz = %f", vp.Pos.Z);
|
||||||
|
|
Loading…
Reference in a new issue