From 6a56bce179d2d8f85b85dfdab05987669498e78b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Wed, 16 May 2012 23:23:39 +0300 Subject: [PATCH] Invert minus and plus for Y axis to represent correct direction --- data/qcsrc/client/hud.qc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index 3b2e0b99..ab126e5a 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -79,7 +79,7 @@ void Sbar_DrawPic(string pic, vector position, vector dimensions, float backgrou sz_y = vid_conheight * dimensions_y; pos_x = (vid_conwidth / 2) * bound(0, 1 + position_x, 2); pos_x -= sz_x / 2; - pos_y = (vid_conheight / 2) * bound(0, 1 + position_y, 2); + pos_y = (vid_conheight / 2) * bound(0, 1 - position_y, 2); pos_y -= sz_y / 2; if(background) @@ -99,7 +99,7 @@ void Sbar_DrawString(string text, vector position, float lettersize) sz_x = sz_y = lettersize; pos_x = (vid_conwidth / 2) * bound(0, 1 + position_x, 2); pos_x -= stringwidth(text, FALSE, sz) * 0.5; - pos_y = (vid_conheight / 2) * bound(0, 1 + position_y, 2); + pos_y = (vid_conheight / 2) * bound(0, 1 - position_y, 2); pos_y -= sz_y / 2; drawstring(pos, text, sz, '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); @@ -155,7 +155,7 @@ void Sbar_DrawXNum (vector position, float num, float digits, float showminusplu sz_x = sz_y = lettersize; pos_x = (vid_conwidth / 2) * bound(0, 1 + position_x, 2); pos_x -= stringwidth(final_num, FALSE, sz) * 0.5; - pos_y = (vid_conheight / 2) * bound(0, 1 + position_y, 2); + pos_y = (vid_conheight / 2) * bound(0, 1 - position_y, 2); pos_y -= sz_y / 2; drawstring(pos, final_num, sz, rgb, alpha, dflags); -- 2.39.2