summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authormc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-22 16:31:05 +0000
committermc_cameri <mc_cameri@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-22 16:31:05 +0000
commit260f3c8f931a55b334b7903475a667406f69cce2 (patch)
tree157131e868296b8f99c99515da86bc5b34527f3d /src/map/npc.c
parent5612f822c84f6c6adde97b2676d1bab6658ef4c0 (diff)
downloadhercules-260f3c8f931a55b334b7903475a667406f69cce2.tar.gz
hercules-260f3c8f931a55b334b7903475a667406f69cce2.tar.bz2
hercules-260f3c8f931a55b334b7903475a667406f69cce2.tar.xz
hercules-260f3c8f931a55b334b7903475a667406f69cce2.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@732 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 4a7704740..88f6fc6e9 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -1702,7 +1702,9 @@ static int npc_parse_script(char *w1,char *w2,char *w3,char *w4,char *first_line
char srcname[128];
struct npc_data *nd2;
if( sscanf(w2,"duplicate(%[^)])",srcname)!=1 ){
- printf("bad duplicate name! : %s",w2);
+ printf("\n");
+ snprintf(tmp_output,sizeof(tmp_output),"Bad duplicate name! : %s",w2);
+ ShowWarning(tmp_output);
return 0;
}
if( (nd2=npc_name2id(srcname))==NULL ){