SCP: Make sure that SCPE_OK isn't interpreted as error in sim_messagef

Error status returns cause the line in a DO file to be displayed.  This
should only happen for non SCPE_OK status.
This commit is contained in:
Mark Pizzolato 2017-04-03 12:56:48 -07:00
parent 9b2ff7e371
commit 00f6cd59a2

3
scp.c
View file

@ -11023,7 +11023,8 @@ while (1) { /* format passed string, arg
break;
}
if (sim_do_ocptr[sim_do_depth]) {
if ((sim_do_ocptr[sim_do_depth]) &&
((stat & ~SCPE_NOMESSAGE) != SCPE_OK)) {
if (!sim_do_echo && !sim_quiet && !inhibit_message)
sim_printf("%s> %s\n", do_position(), sim_do_ocptr[sim_do_depth]);
else {