mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
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:
parent
fc813901ff
commit
6a5c34bb69
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user