GLK: AGT: Rework newline interface to keep agt_input() unchanged

This commit is contained in:
Walter Agazzi 2022-09-25 00:11:24 +02:00 committed by Paul Gilbert
parent 8ac79a7c7b
commit af5096109f

View File

@ -246,9 +246,10 @@ char *agt_readline(int in_type) {
char *s; char *s;
if (PURE_INPUT) agt_textcolor(-1); if (PURE_INPUT) agt_textcolor(-1);
if (logflag & 2) if (logflag & 2) {
s = get_log(); s = get_log();
else agt_newline();
} else
s = agt_input(in_type); s = agt_input(in_type);
if (g_vm->shouldQuit()) if (g_vm->shouldQuit())
@ -260,7 +261,6 @@ char *agt_readline(int in_type) {
if (logflag & 1) if (logflag & 1)
put_log(s); put_log(s);
agt_newline();
return s; return s;
} }