]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sbar.c
Fixed a potential buffer overflow in Con_DebugLog
[xonotic/darkplaces.git] / sbar.c
diff --git a/sbar.c b/sbar.c
index 510ae6463936c3d2107496817deb6dc49dbf6e24..52bb7da7750ca6756b6b7dfdf0be8d4b418c838d 100644 (file)
--- a/sbar.c
+++ b/sbar.c
@@ -1043,11 +1043,11 @@ void Sbar_IntermissionOverlay (void)
                return;
        }
 
-       sbar_x = 0;
-       sbar_y = 0;
+       sbar_x = (vid.conwidth - 320) >> 1;
+       sbar_y = (vid.conheight - 200) >> 1;
 
-       DrawQ_Pic (64, 24, "gfx/complete.lmp", 0, 0, 1, 1, 1, 1, 0);
-       DrawQ_Pic (0, 56, "gfx/inter.lmp", 0, 0, 1, 1, 1, 1, 0);
+       DrawQ_Pic (sbar_x + 64, sbar_y + 24, "gfx/complete.lmp", 0, 0, 1, 1, 1, 1, 0);
+       DrawQ_Pic (sbar_x + 0, sbar_y + 56, "gfx/inter.lmp", 0, 0, 1, 1, 1, 1, 0);
 
 // time
        dig = cl.completed_time/60;