From 6f24a7748e12e3dd2e24153bd0a5382d89273b98 Mon Sep 17 00:00:00 2001 From: ultramage Date: Tue, 30 Jan 2007 03:25:39 +0000 Subject: Removed one grf function that DracoRPG missed git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9745 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index afdbb6b25..be3713b7b 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2873,34 +2873,6 @@ static void npc_read_event_script(void) } } } -static int npc_read_indoors (void) -{ - char *buf, *p; - int s, m; - - buf = (char *)grfio_reads("data\\indoorrswtable.txt",&s); - if (buf == NULL) - return -1; - buf[s] = 0; - - for (p = buf; p - buf < s; ) { - char map_name[64]; - if (sscanf(p, "%15[^#]#", map_name) == 1) { - size_t pos = strlen(map_name) - 4; // replace '.xxx' extension - memcpy(map_name+pos,".gat",4); // with '.gat' - if ((m = map_mapname2mapid(map_name)) >= 0) - map[m].flag.indoors = 1; - } - - p = strchr(p, 10); - if (!p) break; - p++; - } - aFree(buf); - ShowStatus("Done reading '"CL_WHITE"%s"CL_RESET"'.\n","data\\indoorrswtable.txt"); - - return 0; -} /*========================================== * -- cgit v1.2.3-70-g09d2