summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index f462b9aa8..e4f94679d 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -623,14 +623,15 @@ int mob_spawn (struct mob_data *md)
else if (md->vd->class_ != md->class_) {
status_set_viewdata(&md->bl, md->class_);
md->db = mob_db(md->class_);
- if (md->spawn)
- memcpy(md->name,md->spawn->name,NAME_LENGTH);
- // Redundant? mob_parse_dataset already have the name copied. [Lance]
- /*else if (battle_config.override_mob_names == 1)
- memcpy(md->name,md->db->name,NAME_LENGTH);
- else
- memcpy(md->name,md->db->jname,NAME_LENGTH);*/
- }
+ if (md->spawn)
+ memcpy(md->name,md->spawn->name,NAME_LENGTH);
+ /*
+ // Redundant? mob_parse_dataset already have the name copied. [Lance]
+ else if (battle_config.override_mob_names == 1)
+ memcpy(md->name,md->db->name,NAME_LENGTH);
+ else
+ memcpy(md->name,md->db->jname,NAME_LENGTH);
+ */
}
if (md->spawn) { //Respawn data