diff options
author | Strangerke | 2013-09-04 13:16:27 +0200 |
---|---|---|
committer | Strangerke | 2013-09-04 13:16:27 +0200 |
commit | 9c5cc7bba4661114054f05bbce0250650e1138a5 (patch) | |
tree | 271a87ef6188c6557ac0a2b05468ef02632c3f19 /engines | |
parent | 8e7921d19dbc1308505356b7eb45b7d7096257d1 (diff) | |
download | scummvm-rg350-9c5cc7bba4661114054f05bbce0250650e1138a5.tar.gz scummvm-rg350-9c5cc7bba4661114054f05bbce0250650e1138a5.tar.bz2 scummvm-rg350-9c5cc7bba4661114054f05bbce0250650e1138a5.zip |
AVALANCHE: Add a default value to color in state(), remove dead code
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/scrolls2.cpp | 17 |
1 files changed, 1 insertions, 16 deletions
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); |