Sidebar will now always redraw.

This commit is contained in:
Justin Marshall
2020-06-04 19:17:43 -07:00
parent 13c0ff67b0
commit 9cc325dc44
3 changed files with 12 additions and 11 deletions
+1
View File
@@ -261,6 +261,7 @@ char const * Map_Selection(void)
}
if (_flags == KN_LMOUSE) {
{
choice = 0;
if (choice != -1) {
done = 1;
selection = choice;
+8 -8
View File
@@ -447,7 +447,7 @@ void RadarClass::Draw_It(bool forced)
*/
if (IsPlayerNames) {
Draw_Names();
IsToRedraw = false;
// IsToRedraw = false;
BEnd(BENCH_RADAR);
return;
}
@@ -456,7 +456,7 @@ void RadarClass::Draw_It(bool forced)
** If in spy-on-radar facility mode, draw the appropriate info.
*/
if (IsHouseSpy) {
IsToRedraw = false;
//IsToRedraw = false;
if (Draw_House_Info()) {
BEnd(BENCH_RADAR);
return;
@@ -468,7 +468,7 @@ void RadarClass::Draw_It(bool forced)
Map.Repair.Draw_Me(true);
Map.Upgrade.Draw_Me(true);
Map.Zoom.Draw_Me(true);
IsToRedraw = false;
//IsToRedraw = false;
BEnd(BENCH_RADAR);
return;
}
@@ -486,7 +486,7 @@ void RadarClass::Draw_It(bool forced)
** only these.
*/
if (!forced && IsToRedraw && !FullRedraw && !IsPulseActive) {
IsToRedraw = false;
//IsToRedraw = false;
if (PixelPtr) {
@@ -579,8 +579,8 @@ void RadarClass::Draw_It(bool forced)
}
Radar_Cursor(true);
FullRedraw = false;
IsToRedraw = false;
//FullRedraw = false;
//IsToRedraw = false;
Map.Repair.Draw_Me(true);
Map.Upgrade.Draw_Me(true);
@@ -602,8 +602,8 @@ void RadarClass::Draw_It(bool forced)
*/
int val = (DoesRadarExist) ? MAX_RADAR_FRAMES : 0;
CC_Draw_Shape(RadarAnim, val, RadX, RadY + (1 * RESFACTOR), WINDOW_MAIN, SHAPE_NORMAL);
FullRedraw = false;
IsToRedraw = false;
//FullRedraw = false;
//IsToRedraw = false;
if (RunningAsDLL) {
BEnd(BENCH_RADAR);
+3 -3
View File
@@ -779,7 +779,7 @@ void SidebarClass::Draw_It(bool complete)
BStart(BENCH_SIDEBAR);
if (IsSidebarActive && (IsToRedraw || complete) && !Debug_Map) {
IsToRedraw = false;
// IsToRedraw = false;
if (LogicPage->Lock()) {
/*
@@ -814,7 +814,7 @@ void SidebarClass::Draw_It(bool complete)
Zoom.Draw_Me(true);
}
}
IsToRedraw = false;
//IsToRedraw = false;
BEnd(BENCH_SIDEBAR);
}
@@ -1695,7 +1695,7 @@ bool SidebarClass::StripClass::AI(KeyNumType & input, int , int )
void SidebarClass::StripClass::Draw_It(bool complete)
{
if (IsToRedraw || complete) {
IsToRedraw = false;
// IsToRedraw = false;
if (RunningAsDLL) {
return;