From a9efd0db86b308941ece796e05468ef51d5b3247 Mon Sep 17 00:00:00 2001 From: Y_Less Date: Mon, 6 May 2019 01:42:02 +0200 Subject: [PATCH] Append new lines to `print` and `printf`. --- source/amx/amxcons.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/amx/amxcons.c b/source/amx/amxcons.c index 2d1325e..e9700ff 100644 --- a/source/amx/amxcons.c +++ b/source/amx/amxcons.c @@ -1190,6 +1190,7 @@ static cell AMX_NATIVE_CALL n_print(AMX *amx,const cell *params) cstr=amx_Address(amx,params[1]); amx_printstring(amx,cstr,NULL); + cons_putchar(NULL, __T('\n')); /* reset the colours */ (void)amx_setattr(oldcolours & 0xff,(oldcolours >> 8) & 0x7f,(oldcolours >> 15) & 0x01); @@ -1212,6 +1213,7 @@ static cell AMX_NATIVE_CALL n_printf(AMX *amx,const cell *params) CreateConsole(); cstr=amx_Address(amx,params[1]); amx_printstring(amx,cstr,&info); + cons_putchar(NULL, __T('\n')); amx_fflush(); return 0; }