From 27ebcdfeac6437e59e42a8366ca5ae7d7e5221c6 Mon Sep 17 00:00:00 2001 From: ac-stef Date: Sun, 7 Aug 2016 00:47:15 +0200 Subject: [PATCH] fix dbgpos during spectating --- source/src/renderhud.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/src/renderhud.cpp b/source/src/renderhud.cpp index ce92c6d9..8504cba2 100644 --- a/source/src/renderhud.cpp +++ b/source/src/renderhud.cpp @@ -917,15 +917,15 @@ void gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwat if(dbgpos) { pushfont("mono"); - defformatstring(o_yw)("%05.2f YAW", player1->yaw); + defformatstring(o_yw)("%05.2f YAW", p->yaw); draw_text(o_yw, VIRTW*2 - ( text_width(o_yw) + FONTH ), VIRTH*2 - 17*FONTH/2); - defformatstring(o_p)("%05.2f PIT", player1->pitch); + defformatstring(o_p)("%05.2f PIT", p->pitch); draw_text(o_p, VIRTW*2 - ( text_width(o_p) + FONTH ), VIRTH*2 - 15*FONTH/2); - defformatstring(o_x)("%05.2f X ", player1->o.x); + defformatstring(o_x)("%05.2f X ", p->o.x); draw_text(o_x, VIRTW*2 - ( text_width(o_x) + FONTH ), VIRTH*2 - 13*FONTH/2); - defformatstring(o_y)("%05.2f Y ", player1->o.y); + defformatstring(o_y)("%05.2f Y ", p->o.y); draw_text(o_y, VIRTW*2 - ( text_width(o_y) + FONTH ), VIRTH*2 - 11*FONTH/2); - defformatstring(o_z)("%05.2f Z ", player1->o.z); + defformatstring(o_z)("%05.2f Z ", p->o.z); draw_text(o_z, VIRTW*2 - ( text_width(o_z) + FONTH ), VIRTH*2 - 9*FONTH/2); popfont(); }