From 519e644a6258b06ac1836b5da0a575205dd0dbea Mon Sep 17 00:00:00 2001 From: Johan Althoff Date: Fri, 13 Jul 2007 21:22:45 +0000 Subject: fixed various warnings on windows --- src/game/client/menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/client') diff --git a/src/game/client/menu.cpp b/src/game/client/menu.cpp index c8c41e4b..acb4ebfb 100644 --- a/src/game/client/menu.cpp +++ b/src/game/client/menu.cpp @@ -1024,13 +1024,13 @@ static int editor_screen_render() // less if (ui_do_button((void *)(200 + i * 2), "", 0, 650, 35 * i + 10 + 15, 16, 16, draw_single_part_button, (void *)slider_big_arrow_left)) { - current_font->m_CharStartTable[(int)s[0]] -= 0.01; + current_font->m_CharStartTable[(int)s[0]] -= 0.01f; } // more if (ui_do_button((void *)(200 + i * 2 + 1), "", 0, 666, 35 * i + 10 + 15, 16, 16, draw_single_part_button, (void *)slider_big_arrow_right)) { - current_font->m_CharStartTable[(int)s[0]] += 0.01; + current_font->m_CharStartTable[(int)s[0]] += 0.01f; } char num[16]; @@ -1043,13 +1043,13 @@ static int editor_screen_render() // less if (ui_do_button((void *)(300 + i * 2), "", 0, 750, 35 * i + 10 + 15, 16, 16, draw_single_part_button, (void *)slider_big_arrow_left)) { - current_font->m_CharEndTable[(int)s[0]] -= 0.01; + current_font->m_CharEndTable[(int)s[0]] -= 0.01f; } // more if (ui_do_button((void *)(300 + i * 2 + 1), "", 0, 766, 35 * i + 10 + 15, 16, 16, draw_single_part_button, (void *)slider_big_arrow_right)) { - current_font->m_CharEndTable[(int)s[0]] += 0.01; + current_font->m_CharEndTable[(int)s[0]] += 0.01f; } sprintf(num, "(%f)", current_font->m_CharEndTable[(int)s[0]]); -- cgit 1.4.1