summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-05-07 00:18:23 +0200
committerGitHub <noreply@github.com>2018-05-07 00:18:23 +0200
commit4c4d0c3471891142bd28c60aa34b0c278531a417 (patch)
tree3a44b6e20489cd0bf9409735768f76331574cb12 /src/map/npc.c
parent456e3effa7e4d376e2a1bd6f8128e59b0e8c78af (diff)
parent5c9ae7b9559438654265e3dd9afd26f30d499fcc (diff)
downloadhercules-4c4d0c3471891142bd28c60aa34b0c278531a417.tar.gz
hercules-4c4d0c3471891142bd28c60aa34b0c278531a417.tar.bz2
hercules-4c4d0c3471891142bd28c60aa34b0c278531a417.tar.xz
hercules-4c4d0c3471891142bd28c60aa34b0c278531a417.zip
Merge pull request #2027 from MishimaHaruna/sa_summonmonster
Fix the name of monsters summoned through SA_SUMMONMONSTER
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index d361f2e90..f256cbd7d 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -3956,10 +3956,10 @@ const char *npc_parse_mob(const char *w1, const char *w2, const char *w3, const
}
//Use db names instead of the spawn file ones.
- if(battle_config.override_mob_names==1)
- strcpy(mobspawn.name,"--en--");
- else if (battle_config.override_mob_names==2)
- strcpy(mobspawn.name,"--ja--");
+ if (battle_config.override_mob_names == 1)
+ strcpy(mobspawn.name, DEFAULT_MOB_NAME);
+ else if (battle_config.override_mob_names == 2)
+ strcpy(mobspawn.name, DEFAULT_MOB_JNAME);
else
safestrncpy(mobspawn.name, mobname, sizeof(mobspawn.name));