}/* hot_key_seed */ /* * hot_key_undo * * ...allows user to undo the previous turn. * */ internal static bool hot_key_undo() { Text.print_string("Undo one turn\n"); if (FastMem.restore_undo() > 0) { if (main.h_version >= ZMachine.V5) /* for V5+ games we must */ { Process.store(2); /* store 2 (for success) */ return(true); /* and abort the input */ } if (main.h_version <= ZMachine.V3) /* for V3- games we must */ { Screen.z_show_status(); /* draw the status line */ return(false); /* and continue input */ } } else { Text.print_string("No more undo information available.\n"); } return(false); }/* hot_key_undo */