From 5b7d7124f8702f55d2c0594d5e9c12c2c80dab1d Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 14 Feb 2015 01:41:26 +0100 Subject: silence some MSVC warnings --- src/cgame/cg_draw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 9528fed7..ee604e76 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -683,15 +683,15 @@ static void CG_DrawPlayerAmmoValue( rectDef_t *rect, vec4_t color ) len = strlen( text ); if( len <= 4 ) - scale = 0.50; + scale = 0.50f; else if( len <= 6 ) - scale = 0.43; + scale = 0.43f; else if( len == 7 ) - scale = 0.36; + scale = 0.36f; else if( len == 8 ) - scale = 0.33; + scale = 0.33f; else - scale = 0.31; + scale = 0.31f; CG_AlignText( rect, text, scale, 0.0f, 0.0f, ALIGN_RIGHT, VALIGN_CENTER, &tx, &ty ); UI_Text_Paint( tx + 1, ty, scale, color, text, 0, 0, ITEM_TEXTSTYLE_NORMAL ); -- cgit