TRECISION: Remove superfluous inventory state variables
This commit is contained in:
parent
a8882c9478
commit
24d791ba76
5 changed files with 4 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue