diff options
author | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 22:04:47 +0000 |
---|---|---|
committer | L0ne_W0lf <L0ne_W0lf@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-10-18 22:04:47 +0000 |
commit | ac9ba3147b30c5af55884c135e552d61bcc042c3 (patch) | |
tree | 084bcd78d368145c49a180318db901a935998c00 /src/map/npc.c | |
parent | f26dbc30528f8627310fa03f46cefd940ee40588 (diff) | |
download | hercules-ac9ba3147b30c5af55884c135e552d61bcc042c3.tar.gz hercules-ac9ba3147b30c5af55884c135e552d61bcc042c3.tar.bz2 hercules-ac9ba3147b30c5af55884c135e552d61bcc042c3.tar.xz hercules-ac9ba3147b30c5af55884c135e552d61bcc042c3.zip |
Uncommented the ShowWarning and ShowDebug from rev. 11508, and cleaned up the warnings it produced.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11516 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 0c04cfb73..b2de0af2a 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1476,13 +1476,9 @@ static void npc_parsename(struct npc_data* nd, const char* name, const char* sta strcpy(this_mapname, (nd->bl.m==-1?"(not on a map)":mapindex_id2name(map[nd->bl.m].index))); strcpy(other_mapname, (dnd->bl.m==-1?"(not on a map)":mapindex_id2name(map[dnd->bl.m].index))); - //Commented out by ME-- L0ne_W0lf, and maybe one day we'll uncomment it again - //if and when I decide to/get all the warnings nad debug messages this horrible - //BROKEN thing ever shows. - //By the way, this_map and other_map are both WRONG. They are retuirning invalid results. - //ShowWarning("npc_parsename: Duplicate unique name in file '%s', line'%d'. Renaming '%s' to '%s'.\n", filepath, strline(buffer,start-buffer), nd->exname, newname); - //ShowDebug("this npc:\n display name '%s'\n unique name '%s'\n map=%s, x=%d, y=%d\n", nd->name, nd->exname, this_mapname, nd->bl.x, nd->bl.y); - //ShowDebug("other npc:\n display name '%s'\n unique name '%s'\n map=%s, x=%d, y=%d\n", dnd->name, dnd->exname, other_mapname, dnd->bl.x, dnd->bl.y); + ShowWarning("npc_parsename: Duplicate unique name in file '%s', line'%d'. Renaming '%s' to '%s'.\n", filepath, strline(buffer,start-buffer), nd->exname, newname); + ShowDebug("this npc:\n display name '%s'\n unique name '%s'\n map=%s, x=%d, y=%d\n", nd->name, nd->exname, this_mapname, nd->bl.x, nd->bl.y); + ShowDebug("other npc:\n display name '%s'\n unique name '%s'\n map=%s, x=%d, y=%d\n", dnd->name, dnd->exname, other_mapname, dnd->bl.x, dnd->bl.y); safestrncpy(nd->exname, newname, sizeof(nd->exname)); } } |