diff options
author | shennetsind <ind@henn.et> | 2013-07-08 18:08:39 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-08 18:08:39 -0300 |
commit | bb9f27f3fa24c9fab756d60ad961b866ad1c7d35 (patch) | |
tree | 97db1c02f00031e7047ec535b041cb9f7626d499 /src/map | |
parent | 8f7418ffaffb763e435b29eee5707c66d5615e73 (diff) | |
download | hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.gz hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.bz2 hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.tar.xz hercules-bb9f27f3fa24c9fab756d60ad961b866ad1c7d35.zip |
Fixed compiling errors when CONSOLE_PARSE was disabled
Special Thanks to quesoph for bringing this to our attention.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 ) { |