Browse Source

Use ifdef when checking for _DEBUG

pull/4548/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
2ebd80c8e8
  1. 2
      Source/DiabloUI/selhero.cpp
  2. 2
      Source/diablo.cpp

2
Source/DiabloUI/selhero.cpp

@ -460,7 +460,7 @@ void selhero_Init()
SDL_Rect rect13 = { (Sint16)(PANEL_LEFT + 159), (Sint16)(UI_OFFSET_Y + 422), 40, 21 };
vecSelHeroDialog.push_back(std::make_unique<UiArtText>(textStats[4], rect13, UiFlags::AlignCenter | UiFlags::FontSize12 | UiFlags::ColorUiSilverDark));
#if _DEBUG
#ifdef _DEBUG
SDL_Rect rect14 = { (Sint16)(PANEL_LEFT + 39), (Sint16)(UI_OFFSET_Y + 443), 110, 21 };
vecSelHeroDialog.push_back(std::make_unique<UiArtText>(_("Savegame:").c_str(), rect14, UiFlags::AlignRight | UiFlags::FontSize12 | UiFlags::ColorUiSilverDark));
SDL_Rect rect15 = { (Sint16)(PANEL_LEFT + 159), (Sint16)(UI_OFFSET_Y + 443), 40, 21 };

2
Source/diablo.cpp

@ -2173,7 +2173,7 @@ void LoadGameLevel(bool firstflag, lvl_entry lvldir)
[[maybe_unused]] uint32_t mid3Seed = GetLCGEngineState();
InitMissiles();
InitCorpses();
#if _DEBUG
#ifdef _DEBUG
SetDebugLevelSeedInfos(mid1Seed, mid2Seed, mid3Seed, GetLCGEngineState());
#endif

Loading…
Cancel
Save