more hud fixes

This commit is contained in:
q3rally 2021-11-30 22:44:46 +00:00
parent 221e699e09
commit 135d030e11
4 changed files with 16 additions and 7 deletions

View file

@ -1373,7 +1373,7 @@ float CG_DrawScores( float x, float y ) {
// draw from the right side to left // draw from the right side to left
if ( cgs.gametype >= GT_TEAM ) { 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_CTF){
if (cgs.gametype >= GT_TEAM){ if (cgs.gametype >= GT_TEAM){
@ -1501,7 +1501,7 @@ float CG_DrawScores( float x, float y ) {
} else { } else {
qboolean spectator; 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]; score = cg.snap->ps.persistant[PERS_SCORE];
spectator = ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_SPECTATOR ); spectator = ( cg.snap->ps.persistant[PERS_TEAM] == TEAM_SPECTATOR );

View file

@ -608,6 +608,7 @@ static float CG_DrawCarAheadAndBehind( float y ) {
CG_DrawTinyDigitalStringColor( x + cg_wideoffset.integer, y, s, colorWhite); CG_DrawTinyDigitalStringColor( x + cg_wideoffset.integer, y, s, colorWhite);
y += TINYCHAR_HEIGHT; y += TINYCHAR_HEIGHT;
} }
return y; return y;

View file

@ -67,7 +67,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define BASETA "missionpack" #define BASETA "missionpack"
#ifndef PRODUCT_VERSION #ifndef PRODUCT_VERSION
#define PRODUCT_VERSION "v0.3c_r458" #define PRODUCT_VERSION "v0.3c_r459"
#endif #endif

View file

@ -888,6 +888,8 @@ q3rallycode
0=engine\code\qcommon\q_shared.h 0=engine\code\qcommon\q_shared.h
1=engine\code\cgame\cg_rally_hud.c 1=engine\code\cgame\cg_rally_hud.c
2=engine\code\cgame\cg_rally_hud2.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] [Selected Project Files]
Main= Main=
Selected=engine\code\qcommon\q_shared.h Selected=engine\code\qcommon\q_shared.h
@ -895,8 +897,14 @@ Selected=engine\code\qcommon\q_shared.h
TopLine=57 TopLine=57
Caret=36,70 Caret=36,70
[engine\code\cgame\cg_rally_hud.c] [engine\code\cgame\cg_rally_hud.c]
TopLine=533 TopLine=590
Caret=5,553 Caret=1,610
[engine\code\cgame\cg_rally_hud2.c] [engine\code\cgame\cg_rally_hud2.c]
TopLine=160 TopLine=328
Caret=40,204 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