- fixed: SBARINFO based status bars got the wrong color for automap HUD highlights when playing Doom.

This commit is contained in:
Christoph Oelckers 2017-05-04 11:37:36 +02:00
parent 99a61e74c7
commit 5bbf173b4e
2 changed files with 2 additions and 7 deletions

View file

@ -20,12 +20,6 @@ class DoomStatusBar : BaseStatusBar
diparms = InventoryBarState.Create(); diparms = InventoryBarState.Create();
} }
override void DrawAutomapHUD(double ticFrac)
{
// This uses the normal automap HUD but just changes the highlight color.
DoDrawAutomapHUD(Font.CR_GREY, Font.CR_UNTRANSLATED);
}
override void Draw (int state, double TicFrac) override void Draw (int state, double TicFrac)
{ {
Super.Draw (state, TicFrac); Super.Draw (state, TicFrac);

View file

@ -798,7 +798,8 @@ class BaseStatusBar native ui
virtual void DrawAutomapHUD(double ticFrac) virtual void DrawAutomapHUD(double ticFrac)
{ {
DoDrawAutomapHUD(Font.CR_GREY, Font.CR_YELLOW); // game needs to be checked here, so that SBARINFO also gets the correct colors.
DoDrawAutomapHUD(Font.CR_GREY, gameinfo.gametype & GAME_DoomChex? Font.CR_UNTRANSLATED : Font.CR_YELLOW);
} }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------