diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-22 13:16:45 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-06-22 13:16:45 +0000 |
commit | 53cee1c9a4415b8a092c744c6612d2a152e06762 (patch) | |
tree | 47d3a7cab24e3ee4d733cb1ceab1e246520a6265 /src/map/mob.c | |
parent | 097d544fa11ef60116a3f9c4e89b63f111b06738 (diff) | |
download | hercules-53cee1c9a4415b8a092c744c6612d2a152e06762.tar.gz hercules-53cee1c9a4415b8a092c744c6612d2a152e06762.tar.bz2 hercules-53cee1c9a4415b8a092c744c6612d2a152e06762.tar.xz hercules-53cee1c9a4415b8a092c744c6612d2a152e06762.zip |
* [Removed]:
- Redundant mob name copying. (it's already copied in mob_parse_dataset)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7292 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/map/mob.c b/src/map/mob.c index a016a825a..f462b9aa8 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -623,12 +623,14 @@ 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); - 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 |