From bb9f27f3fa24c9fab756d60ad961b866ad1c7d35 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 8 Jul 2013 18:08:39 -0300 Subject: Fixed compiling errors when CONSOLE_PARSE was disabled Special Thanks to quesoph for bringing this to our attention. Signed-off-by: shennetsind --- src/map/map.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 6ed692cee..68ac650c7 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -5227,6 +5227,7 @@ CPCMD(gm_use) { } /* Hercules Console Parser */ void map_cp_defaults(void) { +#ifdef CONSOLE_INPUT /* default HCP data */ memset(&cpsd, 0, sizeof(struct map_session_data)); strcpy(cpsd.status.name, "Hercules Console"); @@ -5236,6 +5237,7 @@ void map_cp_defaults(void) { console->addCommand("gm:info",CPCMD_A(gm_position)); console->addCommand("gm:use",CPCMD_A(gm_use)); +#endif } /* Hercules Plugin Mananger */ void map_hp_symbols(void) { @@ -5509,8 +5511,11 @@ int do_init(int argc, char *argv[]) ShowNotice("Server is running on '"CL_WHITE"PK Mode"CL_RESET"'.\n"); Sql_HerculesUpdateCheck(mmysql_handle); + +#ifdef CONSOLE_INPUT console->setSQL(mmysql_handle); - +#endif + ShowStatus("Server is '"CL_GREEN"ready"CL_RESET"' and listening on port '"CL_WHITE"%d"CL_RESET"'.\n\n", map_port); if( runflag != CORE_ST_STOP ) { -- cgit v1.2.3-70-g09d2