From: MirceaKitsune Date: Wed, 16 May 2012 20:23:39 +0000 (+0300) Subject: Invert minus and plus for Y axis to represent correct direction X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6a56bce179d2d8f85b85dfdab05987669498e78b;p=voretournament%2Fvoretournament.git Invert minus and plus for Y axis to represent correct direction --- 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);