move tallyAllTimerRecords out of conditional so they don't pile up

This commit is contained in:
ZappoMan 2014-10-15 14:23:29 -07:00
parent 3a6715c0bc
commit c8db8855cc

View file

@ -223,9 +223,9 @@ void Stats::display(
lines = _expanded ? 5 : 3; lines = _expanded ? 5 : 3;
int columnOneWidth = _generalStatsWidth; int columnOneWidth = _generalStatsWidth;
if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) { PerformanceTimer::tallyAllTimerRecords(); // do this even if we're not displaying them, so they don't stack up
PerformanceTimer::tallyAllTimerRecords(); if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) {
columnOneWidth = _generalStatsWidth + _pingStatsWidth + _geoStatsWidth; // make it 3 columns wide... columnOneWidth = _generalStatsWidth + _pingStatsWidth + _geoStatsWidth; // make it 3 columns wide...
// we will also include room for 1 line per timing record and a header of 4 lines // we will also include room for 1 line per timing record and a header of 4 lines