diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-14 01:41:26 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-02-07 17:34:58 +0100 |
commit | 5b7d7124f8702f55d2c0594d5e9c12c2c80dab1d (patch) | |
tree | 5bce3ccee0125a4b2e5dce3faa842d7c8153a85a /src/cgame | |
parent | 67b417c41984ad49d1c13f31832eaa5fa825bd3b (diff) |
silence some MSVC warnings
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 ); |