Skip to content

Commit

Permalink
Don't include "viewpos" prefix in clipboard text
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed May 12, 2022
1 parent a227440 commit be17f15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quake/cl_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ void CL_Viewpos_f (void)
#if 0
//camera position
q_snprintf (buf, sizeof (buf),
"Viewpos: (%i %i %i) %i %i %i",
"(%i %i %i) %i %i %i",
(int)r_refdef.vieworg[0],
(int)r_refdef.vieworg[1],
(int)r_refdef.vieworg[2],
Expand All @@ -839,7 +839,7 @@ void CL_Viewpos_f (void)
#else
//player position
q_snprintf (buf, sizeof (buf),
"Viewpos: (%i %i %i) %i %i %i",
"(%i %i %i) %i %i %i",
(int)cl_entities[cl.viewentity].origin[0],
(int)cl_entities[cl.viewentity].origin[1],
(int)cl_entities[cl.viewentity].origin[2],
Expand All @@ -848,7 +848,7 @@ void CL_Viewpos_f (void)
(int)cl.viewangles[ROLL]
);
#endif
Con_Printf ("%s\n", buf);
Con_Printf ("Viewpos: %s\n", buf);

if (Cmd_Argc () >= 2 && !q_strcasecmp (Cmd_Argv (1), "copy"))
if (SDL_SetClipboardText (buf) < 0)
Expand Down

0 comments on commit be17f15

Please sign in to comment.