From cdf6dc90768b1b524c78e3a172c7a844dd88a943 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 15 Nov 2013 03:28:11 -0200 Subject: Fixed db2sql plugin forcing minimal mode Would turn map server into minimal mode regardless of the --db2sql option being used. Signed-off-by: shennetsind --- src/map/map.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index b0ae2f340..24fbeefa0 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2912,7 +2912,7 @@ int map_addmap(const char* mapname) { } void map_delmapid(int id) { - ShowNotice("Removing map [ %s ] from map->list"CL_CLL"\n",map->list[id].name); + ShowNotice("Removing map [ %s ] from maplist"CL_CLL"\n",map->list[id].name); memmove(map->list+id, map->list+id+1, sizeof(map->list[0])*(map->count-id-1)); map->count--; } @@ -5438,7 +5438,6 @@ int do_init(int argc, char *argv[]) HPM->event(HPET_PRE_INIT); - minimal = map->minimal;/* temp (perhaps make minimal a mask with options of what to load? e.g. plugin 1 does minimal |= mob_db; */ for( i = 1; i < argc ; i++ ) { const char* arg = argv[i]; @@ -5481,7 +5480,7 @@ int do_init(int argc, char *argv[]) } else if( strcmp(arg, "run-once") == 0 ) { // close the map-server as soon as its done.. for testing [Celest] runflag = CORE_ST_STOP; } else if( strcmp(arg, "script-check") == 0 ) { - minimal = true; + map->minimal = true; runflag = CORE_ST_STOP; if( map->arg_next_value(arg, i, argc, true) ) scriptcheck = argv[++i]; @@ -5504,7 +5503,7 @@ int do_init(int argc, char *argv[]) } } } - + minimal = map->minimal;/* temp (perhaps make minimal a mask with options of what to load? e.g. plugin 1 does minimal |= mob_db; */ if (!minimal) { map->config_read(map->MAP_CONF_NAME); CREATE(map->list,struct map_data,map->count); -- cgit v1.2.3-60-g2f50