From 9c5cc7bba4661114054f05bbce0250650e1138a5 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 4 Sep 2013 13:16:27 +0200 Subject: AVALANCHE: Add a default value to color in state(), remove dead code --- engines/avalanche/scrolls2.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'engines/avalanche') diff --git a/engines/avalanche/scrolls2.cpp b/engines/avalanche/scrolls2.cpp index fe345d8575..615bdd5a52 100644 --- a/engines/avalanche/scrolls2.cpp +++ b/engines/avalanche/scrolls2.cpp @@ -58,7 +58,7 @@ void Scrolls::state(byte x) { /* Sets "Ready" light to whatever */ if (_vm->_gyro->ledstatus == x) return; /* Already like that! */ - byte color; + byte color = black; switch (x) { case 0: color = black; @@ -69,21 +69,6 @@ void Scrolls::state(byte x) { /* Sets "Ready" light to whatever */ color = green; break; /* Hit a key */ } - - //switch (x) { - //case 0: - // setfillstyle(1, black); - // break; /* Off */ - //case 1: - // setfillstyle(9, green); - // break; /* Half-on (menus) */ - //case 2: - // setfillstyle(1, green); - // break; /* On (kbd) */ - //case 3: - // setfillstyle(6, green); - // break; /* Hit a key */ - //} warning("STUB: Scrolls::state()"); CursorMan.showMouse(false); -- cgit v1.2.3