diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-24 19:29:25 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-24 19:29:25 +0000 |
commit | 1d2cd17fbfac7aa5d54b74e6eacb6c06f2f9c40b (patch) | |
tree | efb2e4174a087f1e8838ca09fd5ee1467b244629 /src/common/grfio.c | |
parent | 7d383782ee118f1fc9837a6425b9431f031d0aa8 (diff) | |
download | hercules-1d2cd17fbfac7aa5d54b74e6eacb6c06f2f9c40b.tar.gz hercules-1d2cd17fbfac7aa5d54b74e6eacb6c06f2f9c40b.tar.bz2 hercules-1d2cd17fbfac7aa5d54b74e6eacb6c06f2f9c40b.tar.xz hercules-1d2cd17fbfac7aa5d54b74e6eacb6c06f2f9c40b.zip |
- Some cleaning around the return to egg code. Pets should stop duplicating now.
- Some cleaning of the egg hatching routine to prevent spawning the pet if the egg can't be found in the inventory.
- Removed some autoadded data/ strings in grfio.c module to see if it helps with the data_dir configuration.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5736 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/grfio.c')
-rw-r--r-- | src/common/grfio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/grfio.c b/src/common/grfio.c index fcc1ee461..9830ca85c 100644 --- a/src/common/grfio.c +++ b/src/common/grfio.c @@ -846,7 +846,7 @@ static void grfio_resourcecheck(void) FILE *fp;
// read resnametable from data directory and return if successful
- sprintf(restable, "%sdata\\resnametable.txt", data_dir);
+ sprintf(restable, "%sresnametable.txt", data_dir);
for (ptr = &restable[0]; *ptr != 0; ptr++)
if (*ptr == '\\') *ptr = '/';
@@ -857,8 +857,8 @@ static void grfio_resourcecheck(void) // we only need the map names and text files
(strstr(w2, ".gat") || strstr(w2, ".txt")))
{
- sprintf(src, "data\\%s", w1);
- sprintf(dst, "data\\%s", w2);
+ sprintf(src, "%s", w1);
+ sprintf(dst, "%s", w2);
entry = filelist_find(dst);
// create new entries reusing the original's info
if (entry != NULL) {
|