summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-08 18:08:39 -0300
committershennetsind <ind@henn.et>2013-07-08 18:08:39 -0300
commitbb9f27f3fa24c9fab756d60ad961b866ad1c7d35 (patch)
tree97db1c02f00031e7047ec535b041cb9f7626d499 /src/map/map.c
parent8f7418ffaffb763e435b29eee5707c66d5615e73 (diff)
downloadhercules-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/map.c')
-rw-r--r--src/map/map.c7
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 ) {