GLK: AGT: Fix Fallthrough Compiler Warnings

One of these was an actal bug which would have caused the score notification
to be toggled if the restart verb was unable to be executed due to lack of
memory. This is obviously wrong and has been fixed.
This commit is contained in:
D G Turner 2019-12-16 08:01:21 +00:00
parent fc813901ff
commit 6a5c34bb69
2 changed files with 4 additions and 1 deletions

View File

@ -3094,10 +3094,12 @@ static glui32 gagt_display_hinted_line(const gagt_lineref_t line, glui32 current
case HINT_NONE:
gagt_fatal("GLK: Page buffer line with no font hint");
gagt_exit();
break;
default:
gagt_fatal("GLK: Invalid font hint encountered");
gagt_exit();
break;
}
return style;

View File

@ -1421,6 +1421,7 @@ void exec_verb(void)
doing_restore = 2;
return;
}
break;
case (OLD_VERB+4):
cmd_saveable = 0; /* NOTIFY */
notify_flag = !notify_flag;
@ -1620,7 +1621,7 @@ int check_obj(parse_rec *act, int verbid,
case 14: /* THROW dobj prep_ iobj */
case 29: /* PUT dobj prep_ iobj */
if (do_disambig == 2 && genvisible(iorec)) return DISAMBIG_SUCC;
/* ... fall through to next case ... */
// fallthrough
case 41: /* DROP */
if (do_disambig == 1 && it_possess(dobj)) return DISAMBIG_SUCC;
break;