From 8f7418ffaffb763e435b29eee5707c66d5615e73 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 8 Jul 2013 15:34:41 -0300 Subject: Cygwin Fix for the Hercules SQL Update Check Also modified the output (i think its sightly improved), also added a console command to skip updates so no need to go add the query yourself 'sql update skip ' Signed-off-by: shennetsind --- src/char/char.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/char') diff --git a/src/char/char.c b/src/char/char.c index a941dac14..b38e3e6c0 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -13,6 +13,7 @@ #include "../common/strlib.h" #include "../common/timer.h" #include "../common/utils.h" +#include "../common/console.h" #include "int_guild.h" #include "int_homun.h" #include "int_mercenary.h" @@ -5022,6 +5023,7 @@ int do_init(int argc, char **argv) { } Sql_HerculesUpdateCheck(sql_handle); + console->setSQL(sql_handle); ShowStatus("The char-server is "CL_GREEN"ready"CL_RESET" (Server is listening on the port %d).\n\n", char_port); -- cgit v1.2.3-60-g2f50