TRECISION: Remove superfluous inventory state variables

This commit is contained in:
Filippos Karapetis 2021-06-11 23:18:55 +03:00
parent a8882c9478
commit 24d791ba76
5 changed files with 4 additions and 16 deletions

View file

@ -195,14 +195,8 @@ void TrecisionEngine::processTime() {
if (_inventoryStatus == INV_PAINT || _inventoryStatus == INV_DEPAINT)
rollInventory(_inventoryStatus);
if (_inventoryStatus != INV_OFF && (
_inventoryRefreshStartIconOld != _inventoryRefreshStartIcon ||
_inventoryRefreshStartLineOld != _inventoryRefreshStartLine ||
_lightIconOld != _lightIcon)) {
if (_inventoryStatus != INV_OFF) {
refreshInventory(_inventoryRefreshStartIcon, _inventoryRefreshStartLine);
_inventoryRefreshStartIconOld = _inventoryRefreshStartIcon;
_inventoryRefreshStartLineOld = _inventoryRefreshStartLine;
_lightIconOld = _lightIcon;
}
_textMgr->drawTexts();