- xmin = (vid_conwidth.integer - (26 + 15) * 8 * FONT_SBAR->maxwidth) / 2; // 26 characters until name, then we assume 15 character names (they can be longer but usually aren't)
+ xmin = (int) (vid_conwidth.integer - (26 + 15) * 8 * FONT_SBAR->maxwidth) / 2; // 26 characters until name, then we assume 15 character names (they can be longer but usually aren't)
else
- xmin = (vid_conwidth.integer - (16 + 25) * 8 * FONT_SBAR->maxwidth) / 2; // 16 characters until name, then we assume 25 character names (they can be longer but usually aren't)
+ xmin = (int) (vid_conwidth.integer - (16 + 25) * 8 * FONT_SBAR->maxwidth) / 2; // 16 characters until name, then we assume 25 character names (they can be longer but usually aren't)
xmax = vid_conwidth.integer - xmin;
if(gamemode == GAME_NEXUIZ)
@@ -1827,7+1827,7 @@ void Sbar_MiniDeathmatchOverlay (int x, int y)
return;
// adjust the given y if sbar_miniscoreboard_size doesn't indicate default (< 0)
if(sbar_miniscoreboard_size.value > 0)
- y = vid_conheight.integer - sbar_miniscoreboard_size.value * 8;
+ y = (int) (vid_conheight.integer - sbar_miniscoreboard_size.value * 8);