summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-05-01 19:36:15 +0200
committerHaru <haru@dotalux.com>2018-05-01 19:36:15 +0200
commit5c9ae7b9559438654265e3dd9afd26f30d499fcc (patch)
tree2d842a87ecc950eec2c0223e7dcbde97acfe0a27 /src/map/npc.c
parent3f6e0922d66d7ffc6a655fbd4e8bc59736e844fb (diff)
downloadhercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.gz
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.bz2
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.tar.xz
hercules-5c9ae7b9559438654265e3dd9afd26f30d499fcc.zip
Replace "--ja--" and "--en--" with constants (source only)
- Use `DEFAULT_MOB_NAME` instead of a literal "--en--" - Use `DEFAULT_MOB_JNAME` instead of a literal "--ja--" Signed-off-by: Haru <haru@dotalux.com>
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 94ab57bd9..b72cc06cc 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));