Fix editor menu being drawn on top of editor with BGs disabled

Previously, if you had backgrounds disabled in accessibility options,
and went to the editor and opened up the editor menu, it would be drawn
straight on top of what was already there in the editor instead of being
drawn on top of black. So now it's drawn on top of black.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-29 14:25:39 -04:00
1 parent e92a21cf8a
commit f33cbfbe62
1 file changed
+8 -1
+8 -1
View File
@@ -3008,7 +3008,14 @@ void editorrender()
}
else if(ed.settingsmod)
{
if(!game.colourblindmode) graphics.drawtowerbackgroundsolo();
if(!game.colourblindmode)
{
graphics.drawtowerbackgroundsolo();
}
else
{
FillRect(graphics.backBuffer, 0, 0, 320, 240, 0x00000000);
}
int tr = map.r - (help.glow / 4) - int(fRandom() * 4);
int tg = map.g - (help.glow / 4) - int(fRandom() * 4);