From 02af11fa1adb06fd84c7820a28c57a9061d72daa Mon Sep 17 00:00:00 2001 From: Ben Lankamp Date: Sat, 4 Jul 2020 11:44:16 +0200 Subject: [PATCH] Draw Powerbar first, buttons + addon (filler) are drawn on top of that. --- code/redalert/sidebar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/redalert/sidebar.cpp b/code/redalert/sidebar.cpp index 27dec7c..e32f644 100644 --- a/code/redalert/sidebar.cpp +++ b/code/redalert/sidebar.cpp @@ -778,6 +778,9 @@ void SidebarClass::Draw_It(bool complete) // hack: black background for the sidebar GL_FillRect(TBLACK, SIDE_X * RESFACTOR, 8 * RESFACTOR, SIDE_WIDTH * RESFACTOR, ScreenHeight); + // Draw power on top + PowerClass::Draw_It(complete); + BStart(BENCH_SIDEBAR); if (IsSidebarActive && (IsToRedraw || complete) && !Debug_Map) { @@ -812,9 +815,6 @@ void SidebarClass::Draw_It(bool complete) } } - // Draw power on top - PowerClass::Draw_It(complete); - /* ** Draw the side strip elements by calling their respective draw functions. */