From 05566ba996c5efcf765559a7f9dfb50eaf07c2b7 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 14 Jan 2006 23:46:24 +0000 Subject: [PATCH] trying to fix bigfoot's mobile phone hud git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1869 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sbar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engine/client/sbar.c b/engine/client/sbar.c index ec70eeab7..75893fb23 100644 --- a/engine/client/sbar.c +++ b/engine/client/sbar.c @@ -2004,9 +2004,9 @@ void Sbar_DeathmatchOverlay (int start) if (cl.teamplay) { if (scr_chatmode) - x = vid.width/2 + (vid.width/2 - 320)/2 + 4; + x = vid.width/2 + ((int)vid.width/2 - 320)/2 + 4; else - x = (vid.width - 320)/2 + 4; + x = ((int)vid.width - 320)/2 + 4; // 0 40 64 104 152 192 Draw_String ( x , y, "ping pl time frags team name"); y += 8; @@ -2017,9 +2017,9 @@ void Sbar_DeathmatchOverlay (int start) else { if (scr_chatmode) - x = vid.width/2 + (vid.width/2 - 320)/2 + 16; + x = vid.width/2 + ((int)vid.width/2 - 320)/2 + 16; else - x = (vid.width - 320)/2 + 16; + x = ((int)vid.width - 320)/2 + 16; // 0 40 64 104 152 Draw_String ( x , y, "ping pl time frags name"); y += 8;