From 9cb21bac409ae46c0f4aa12732579f4f24141278 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 9 Nov 2012 02:27:33 +0000 Subject: Fixed bugreport:6209 / Follow up r16867 : updated mapcache to write onto its proper map_cache.dat depending on the instance's #RENEWAL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16884 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/tool/mapcache.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/tool/mapcache.c') diff --git a/src/tool/mapcache.c b/src/tool/mapcache.c index 9c4fd2cbf..9cb1d792c 100644 --- a/src/tool/mapcache.c +++ b/src/tool/mapcache.c @@ -7,6 +7,8 @@ #include "../common/mmo.h" #include "../common/showmsg.h" +#include "../config/renewal.h" + #include #include #include @@ -19,7 +21,7 @@ char grf_list_file[256] = "conf/grf-files.txt"; char map_list_file[256] = "db/map_index.txt"; -char map_cache_file[256] = "db/map_cache.dat"; +char map_cache_file[256]; int rebuild = 0; FILE *map_cache_fp; @@ -254,6 +256,15 @@ int do_init(int argc, char** argv) struct map_data map; char name[MAP_NAME_LENGTH_EXT]; + /* setup pre-defined, #define-dependant */ + sprintf(map_cache_file,"db/%s/map_cache.dat", +#ifndef RENEWAL + "re" +#else + "pre-re" +#endif + ); + // Process the command-line arguments process_args(argc, argv); -- cgit v1.2.3-60-g2f50