From 135d030e112428291855192d8aba4d660beab8a0 Mon Sep 17 00:00:00 2001 From: q3rally Date: Tue, 30 Nov 2021 22:44:46 +0000 Subject: [PATCH] more hud fixes --- engine/code/cgame/cg_draw.c | 4 ++-- engine/code/cgame/cg_rally_hud.c | 1 + engine/code/qcommon/q_shared.h | 2 +- q3rallycode.ppr | 16 ++++++++++++---- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/engine/code/cgame/cg_draw.c b/engine/code/cgame/cg_draw.c index e339800f..0c2c48aa 100644 --- a/engine/code/cgame/cg_draw.c +++ b/engine/code/cgame/cg_draw.c @@ -1373,7 +1373,7 @@ float CG_DrawScores( float x, float y ) { // draw from the right side to left if ( cgs.gametype >= GT_TEAM ) { - CG_FillRect( x - 96, y, 96, 18, bgColor ); + CG_FillRect( x - 80, y, 96, 18, bgColor ); // if (cgs.gametype != GT_CTF){ if (cgs.gametype >= GT_TEAM){ @@ -1501,7 +1501,7 @@ float CG_DrawScores( float x, float y ) { } else { qboolean spectator; - CG_FillRect( x - 96, y, 96, 18, bgColor ); + CG_FillRect( x - 80, y, 96, 18, bgColor ); score = cg.snap->ps.persistant[PERS_SCORE]; spectator = ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_SPECTATOR ); diff --git a/engine/code/cgame/cg_rally_hud.c b/engine/code/cgame/cg_rally_hud.c index 10d4a844..20efdc79 100644 --- a/engine/code/cgame/cg_rally_hud.c +++ b/engine/code/cgame/cg_rally_hud.c @@ -608,6 +608,7 @@ static float CG_DrawCarAheadAndBehind( float y ) { CG_DrawTinyDigitalStringColor( x + cg_wideoffset.integer, y, s, colorWhite); y += TINYCHAR_HEIGHT; + } return y; diff --git a/engine/code/qcommon/q_shared.h b/engine/code/qcommon/q_shared.h index 3b45aeb8..2a5818ce 100644 --- a/engine/code/qcommon/q_shared.h +++ b/engine/code/qcommon/q_shared.h @@ -67,7 +67,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #define BASETA "missionpack" #ifndef PRODUCT_VERSION -#define PRODUCT_VERSION "v0.3c_r458" +#define PRODUCT_VERSION "v0.3c_r459" #endif diff --git a/q3rallycode.ppr b/q3rallycode.ppr index b6d63c10..390f4f74 100644 --- a/q3rallycode.ppr +++ b/q3rallycode.ppr @@ -888,6 +888,8 @@ q3rallycode 0=engine\code\qcommon\q_shared.h 1=engine\code\cgame\cg_rally_hud.c 2=engine\code\cgame\cg_rally_hud2.c +3=engine\code\cgame\cg_local.h +4=engine\code\cgame\cg_draw.c [Selected Project Files] Main= Selected=engine\code\qcommon\q_shared.h @@ -895,8 +897,14 @@ Selected=engine\code\qcommon\q_shared.h TopLine=57 Caret=36,70 [engine\code\cgame\cg_rally_hud.c] -TopLine=533 -Caret=5,553 +TopLine=590 +Caret=1,610 [engine\code\cgame\cg_rally_hud2.c] -TopLine=160 -Caret=40,204 +TopLine=328 +Caret=1,344 +[engine\code\cgame\cg_local.h] +TopLine=1638 +Caret=1,1654 +[engine\code\cgame\cg_draw.c] +TopLine=1546 +Caret=22,1504