diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-05 13:57:07 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-05-05 13:57:07 +0000 |
commit | 9dc87bf9db25237ae4d904f92311352e6171d372 (patch) | |
tree | fe58100dd34d6ee12120f5a2d165b84cdb5a3ab2 /src/map/map.c | |
parent | 0782cabc543c151f724f38f5132ab948f6346af4 (diff) | |
download | hercules-9dc87bf9db25237ae4d904f92311352e6171d372.tar.gz hercules-9dc87bf9db25237ae4d904f92311352e6171d372.tar.bz2 hercules-9dc87bf9db25237ae4d904f92311352e6171d372.tar.xz hercules-9dc87bf9db25237ae4d904f92311352e6171d372.zip |
- imported the latest working grfio code from stable
- re-added usage of managed allocation routines in grfio
- eol-styled some new files
- some cosmetic fixes here and there
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10468 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/src/map/map.c b/src/map/map.c index c65e49d21..ca2fd6565 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -2856,24 +2856,17 @@ int map_config_read(char *cfgName) { } else if(strcmpi(w1,"db_path") == 0) { strncpy(db_path,w2,255); } else if (strcmpi(w1, "console") == 0) { - if(strcmpi(w2,"on") == 0 || strcmpi(w2,"yes") == 0 ) { - console = 1; + console = config_switch(w2); + if (console) ShowNotice("Console Commands are enabled.\n"); - } } else if (strcmpi(w1, "enable_spy") == 0) { - if(strcmpi(w2,"on") == 0 || strcmpi(w2,"yes") == 0 ) - enable_spy = 1; - else - enable_spy = 0; - } else if (strcmpi(w1, "use_grf") == 0) { //[blackhole89] - if(strcmpi(w2,"on") == 0 || strcmpi(w2,"yes") == 0 ) - enable_grf = 1; - else - enable_grf = 0; + enable_spy = config_switch(w2); + } else if (strcmpi(w1, "use_grf") == 0) { + enable_grf = config_switch(w2); } else if (strcmpi(w1, "import") == 0) { map_config_read(w2); } else - ShowWarning("Unknown setting [%s] in file %s\n", w1, cfgName); + ShowWarning("Unknown setting '%s' in file %s\n", w1, cfgName); } } fclose(fp); |