mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
ICB: Fix GCC Identical Branch Compiler Warnings
This commit is contained in:
parent
430a980820
commit
a2b81f837a
@ -84,13 +84,16 @@ void Init_play_movie(const char *param0, bool8 param1);
|
||||
// runs the gamescript until a given bookmark then returns
|
||||
// so the pc is set to the correct place for a mission....
|
||||
void _game_script::Run_to_bookmark(const char *name) {
|
||||
// FIXME: Branches are identical. Dead code or bug?
|
||||
#if 0
|
||||
if ((g_mission) && (g_mission->session)) {
|
||||
// global
|
||||
buf = private_session_resman->Res_open(fname, fn_hash, cluster, cluster_hash);
|
||||
} else {
|
||||
#endif
|
||||
// global
|
||||
buf = private_session_resman->Res_open(fname, fn_hash, cluster, cluster_hash);
|
||||
}
|
||||
//}
|
||||
|
||||
char command;
|
||||
char p1[ENGINE_STRING_LEN];
|
||||
|
@ -287,14 +287,17 @@ bool mainLoopIteration() {
|
||||
while (g_system->getEventManager()->pollEvent(event)) {
|
||||
switch (event.type) {
|
||||
case Common::EVENT_KEYDOWN: {
|
||||
// FIXME: All branches execute effectively the same code
|
||||
#if 0
|
||||
// Pass ENTER and BACKSPACE KEYDOWN events to WriteKey() so the save menu in options_manager_pc.cpp can see them.
|
||||
if (event.kbd.keycode == Common::KEYCODE_RETURN) {
|
||||
WriteKey((char)event.kbd.keycode);
|
||||
} else if (event.kbd.keycode == Common::KEYCODE_BACKSPACE) {
|
||||
WriteKey((char)event.kbd.keycode);
|
||||
} else {
|
||||
#endif
|
||||
WriteKey(event.kbd.keycode);
|
||||
}
|
||||
//}
|
||||
setKeyState(event.kbd.keycode, true);
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user