From e593015402c6b4990fda584164956132350d720a Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sat, 13 Dec 2008 03:12:56 +0000 Subject: Cleanup. svn-id: r35323 --- engines/agos/icons.cpp | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'engines/agos/icons.cpp') diff --git a/engines/agos/icons.cpp b/engines/agos/icons.cpp index 7875347d4a..3f90742891 100644 --- a/engines/agos/icons.cpp +++ b/engines/agos/icons.cpp @@ -921,23 +921,29 @@ void AGOSEngine::drawArrow(uint16 x, uint16 y, int8 dir) { _system->unlockScreen(); } -void AGOSEngine::removeArrows(WindowBlock *window, uint num) { +void AGOSEngine_Simon1::removeArrows(WindowBlock *window, uint num) { if (getGameType() == GType_SIMON1) { restoreBlock(200, 320, 146, 304); - } else if (getGameType() == GType_WW) { - setBitFlag(22, false); - setWindowImageEx(6, 103); - } else if (getGameType() == GType_ELVIRA2) { - setBitFlag(21, false); - setWindowImageEx(6, 106); - } else if (getGameType() == GType_ELVIRA1) { - if (num != 2) { - uint y = window->height * 4 + window->y - 19; - uint x = window->width + window->x; - restoreBlock(y + 38, x + 16, y, x); - } else { - colorBlock(window, 240, 151, 16, 38); - } + } +} + +void AGOSEngine_Waxworks::removeArrows(WindowBlock *window, uint num) { + setBitFlag(22, false); + setWindowImageEx(6, 103); +} + +void AGOSEngine_Elvira2::removeArrows(WindowBlock *window, uint num) { + setBitFlag(21, false); + setWindowImageEx(6, 106); +} + +void AGOSEngine::removeArrows(WindowBlock *window, uint num) { + if (num != 2) { + uint y = window->height * 4 + window->y - 19; + uint x = window->width + window->x; + restoreBlock(y + 38, x + 16, y, x); + } else { + colorBlock(window, 240, 151, 16, 38); } } -- cgit v1.2.3