aboutsummaryrefslogtreecommitdiff
path: root/engines/simon/items.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/simon/items.cpp')
-rw-r--r--engines/simon/items.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/engines/simon/items.cpp b/engines/simon/items.cpp
index afeb9f4938..843a39552e 100644
--- a/engines/simon/items.cpp
+++ b/engines/simon/items.cpp
@@ -1190,7 +1190,10 @@ void SimonEngine::o1_copysf() {
void SimonEngine::o1_restoreIcons() {
// 137
- o_restoreIconArray(getVarOrByte());
+ uint num = getVarOrByte();
+ WindowBlock *window = _windowArray[num & 7];
+ if (window->iconPtr)
+ drawIconArray(num, window->iconPtr->itemRef, window->iconPtr->line, window->iconPtr->classMask);
}
void SimonEngine::o1_freezeZones() {
@@ -1954,15 +1957,6 @@ void SimonEngine::o_waitForMark(uint i) {
}
}
-void SimonEngine::o_restoreIconArray(uint num) {
- WindowBlock *window;
-
- window = _windowArray[num & 7];
- if (window->iconPtr == NULL)
- return;
- drawIconArray(num, window->iconPtr->itemRef, window->iconPtr->line, window->iconPtr->classMask);
-}
-
void SimonEngine::o_freezeBottom() {
_vgaBufStart = _vgaBufFreeStart;
_vgaFileBufOrg = _vgaBufFreeStart;