@@ -3252,8 +3252,14 @@ void CG_Q3F_DrawHUDIcons(rectDef_t *rect, float tscale, vec4_t color, int textSt
32523252 Com_sprintf (buf , sizeof (buf ), "%d" , (int )t /1000 );
32533253 y += (h - CG_Text_Height (buf , tscale , 0 , font )) / 2 ;
32543254
3255- // TODO put the reverse'd text on left hand side of the icon as well
3256- CG_Text_Paint (x + text_x + (w /2 ) + 7 , y + text_y + 2 , tscale , colorWhite , buf , 0 , 0 , textStyle , font , textalignment );
3255+ if (reverse ) {;
3256+ float textWidth = CG_Text_Width (buf , tscale , 0 , font );
3257+ CG_Text_Paint (x - textWidth - 7 , y + text_y + 2 , tscale , colorWhite , buf , 0 , 0 , textStyle , font , textalignment );
3258+ }
3259+ else {
3260+
3261+ CG_Text_Paint (x + text_x + (w / 2 ) + 7 , y + text_y + 2 , tscale , colorWhite , buf , 0 , 0 , textStyle , font , textalignment );
3262+ }
32573263 }
32583264 }
32593265 } else if ( cent -> currentState .eFlags & EF_VOTED ) {
@@ -3888,7 +3894,7 @@ void CG_OwnerDraw( itemDef_t *item, float x, float y, float w, float h, float te
38883894 CG_Q3F_DrawScoreboardTeamScores ( & rect , scale , color , textStyle , textalignment , text_x , text_y , parentfont );
38893895 break ;
38903896 case CG_HUDICONS :
3891- CG_Q3F_DrawHUDIcons ( & rect , scale , color , textStyle , textalignment , text_x , text_y , parentfont , item -> special , qfalse );
3897+ CG_Q3F_DrawHUDIcons ( & rect , scale , color , textStyle , textalignment , text_x , text_y , parentfont , item -> special , item -> flipped );
38923898 break ;
38933899
38943900 case CG_LEVELSHOT :
0 commit comments