Skip to content

Commit

Permalink
Fixed coordinates displaying twice in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel committed Oct 3, 2023
1 parent 3142865 commit 58e3056
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions code/fgame/player_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,5 @@ void Player::EventFace(Event *ev)

void Player::EventCoord(Event *ev)
{
const char *s =
va("location: %.2f %.2f %.2f\nangles: %.2f %.2f %.2f\n(use 'tele' or 'face' to set)\n",
origin[0],
origin[1],
origin[2],
v_angle[0],
v_angle[1],
v_angle[2]);

HUDPrint(s);
gi.Printf(s);
gi.Printf("location: %.2f %.2f %.2f\nangles: %.2f %.2f %.2f\n(use 'tele' or 'face' to set)\n", origin[0], origin[1], origin[2], v_angle[0], v_angle[1], v_angle[2]);
}

0 comments on commit 58e3056

Please sign in to comment.