diff options
author | Eugene Sandulenko | 2017-08-11 20:33:21 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-11 20:33:21 +0200 |
commit | 18e263129f351023d6c799281dc736069c017ac6 (patch) | |
tree | 598d02901656bd0511f1a8bbb18562594bc94b82 /engines/agi/preagi.cpp | |
parent | e0b3001218f73c978d30642e4a9dcfac415dd79f (diff) | |
download | scummvm-rg350-18e263129f351023d6c799281dc736069c017ac6.tar.gz scummvm-rg350-18e263129f351023d6c799281dc736069c017ac6.tar.bz2 scummvm-rg350-18e263129f351023d6c799281dc736069c017ac6.zip |
AGI: PREAGI: Add missing break statements
Diffstat (limited to 'engines/agi/preagi.cpp')
-rw-r--r-- | engines/agi/preagi.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/agi/preagi.cpp b/engines/agi/preagi.cpp index f8630db0b6..16a20025f6 100644 --- a/engines/agi/preagi.cpp +++ b/engines/agi/preagi.cpp @@ -217,12 +217,15 @@ int PreAgiEngine::getSelection(SelectionTypes type) { case Common::KEYCODE_y: if (type == kSelYesNo) return 1; + break; case Common::KEYCODE_n: if (type == kSelYesNo) return 0; + break; case Common::KEYCODE_ESCAPE: if (type == kSelNumber || type == kSelAnyKey) return 0; + break; case Common::KEYCODE_1: case Common::KEYCODE_2: case Common::KEYCODE_3: @@ -234,12 +237,15 @@ int PreAgiEngine::getSelection(SelectionTypes type) { case Common::KEYCODE_9: if (type == kSelNumber) return event.kbd.keycode - Common::KEYCODE_1 + 1; + break; case Common::KEYCODE_SPACE: if (type == kSelSpace) return 1; + break; case Common::KEYCODE_BACKSPACE: if (type == kSelBackspace) return 0; + break; default: if (event.kbd.flags & Common::KBD_CTRL) break; |