diff options
Diffstat (limited to 'engines/glk/adrift')
-rw-r--r-- | engines/glk/adrift/os_glk.cpp | 1 | ||||
-rw-r--r-- | engines/glk/adrift/scdebug.cpp | 3 | ||||
-rw-r--r-- | engines/glk/adrift/scgamest.cpp | 3 | ||||
-rw-r--r-- | engines/glk/adrift/sclibrar.cpp | 8 | ||||
-rw-r--r-- | engines/glk/adrift/scobjcts.cpp | 3 |
5 files changed, 18 insertions, 0 deletions
diff --git a/engines/glk/adrift/os_glk.cpp b/engines/glk/adrift/os_glk.cpp index 218e90d063..958cf55d7d 100644 --- a/engines/glk/adrift/os_glk.cpp +++ b/engines/glk/adrift/os_glk.cpp @@ -2985,6 +2985,7 @@ static void gsc_main() { break; case GAME_QUIT: + default: is_running = FALSE; break; } diff --git a/engines/glk/adrift/scdebug.cpp b/engines/glk/adrift/scdebug.cpp index 23c8ed2b9a..cb1f107a5b 100644 --- a/engines/glk/adrift/scdebug.cpp +++ b/engines/glk/adrift/scdebug.cpp @@ -1062,6 +1062,9 @@ static void debug_dump_object(sc_gameref_t game, sc_int object) { case OBJ_LOCKED: if_print_debug(", Locked"); break; + default: + if_print_debug(", Unknown openness"); + break; } if_print_debug_character('\n'); diff --git a/engines/glk/adrift/scgamest.cpp b/engines/glk/adrift/scgamest.cpp index b928258dfe..9ecc8806cf 100644 --- a/engines/glk/adrift/scgamest.cpp +++ b/engines/glk/adrift/scgamest.cpp @@ -684,6 +684,9 @@ sc_gameref_t gs_create(sc_var_setref_t vars, sc_prop_setref_t bundle, sc_filterr gs_set_event_state(game, index_, ES_AWAITING); gs_set_event_time(game, index_, 0); break; + + default: + break; } } diff --git a/engines/glk/adrift/sclibrar.cpp b/engines/glk/adrift/sclibrar.cpp index 89f2dee7b8..e3c13eae3a 100644 --- a/engines/glk/adrift/sclibrar.cpp +++ b/engines/glk/adrift/sclibrar.cpp @@ -994,6 +994,9 @@ static sc_bool lib_can_go(sc_gameref_t game, sc_int room, sc_int direction) { } break; } + + default: + break; } } @@ -2376,6 +2379,8 @@ sc_bool lib_cmd_examine_self(sc_gameref_t game) { "I am lying down", "%player% is lying down"); break; + default: + break; } if (position @@ -8372,6 +8377,9 @@ sc_bool lib_cmd_locate_object(sc_gameref_t game) { } else pf_buffer_string(filter, "I don't know where that is.\n"); return TRUE; + + default: + break; } /* diff --git a/engines/glk/adrift/scobjcts.cpp b/engines/glk/adrift/scobjcts.cpp index 50abfa1326..1c94874f60 100644 --- a/engines/glk/adrift/scobjcts.cpp +++ b/engines/glk/adrift/scobjcts.cpp @@ -883,6 +883,9 @@ sc_bool obj_shows_initial_description(sc_gameref_t game, sc_int object) { initialposition = prop_get_integer(bundle, "I<-sis", vt_key) - 3; return gs_object_position(game, object) == initialposition; } + + default: + break; } /* What you talkin' 'bout, Willis? */ |