summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 17:55:37 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-08 17:55:37 +0000
commit0d24db22f0c4aeef985588da3b852078045cdda2 (patch)
tree7fe7c1ddd32f2ab21ddfd690a2de9f97dca4b0fc /src/map/mob.c
parent67560f093d726077d558479cee4e46af2c26d91d (diff)
downloadhercules-0d24db22f0c4aeef985588da3b852078045cdda2.tar.gz
hercules-0d24db22f0c4aeef985588da3b852078045cdda2.tar.bz2
hercules-0d24db22f0c4aeef985588da3b852078045cdda2.tar.xz
hercules-0d24db22f0c4aeef985588da3b852078045cdda2.zip
- Casting Kaensin will clear out Suiton and viceversa now.
- Fixed drop-rates (@whodrops) getting duplicates when you use @reloadmobdb - Fixed unjailing not sending characters to Prontera. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8188 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index cea8b388a..eea96d008 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -3359,7 +3359,8 @@ static int mob_readdb(void)
if (k == MAX_SEARCH)
continue;
- memmove(&id->mob[k+1], &id->mob[k], (MAX_SEARCH-k-1)*sizeof(id->mob[0]));
+ if (id->mob[k].id != class_)
+ memmove(&id->mob[k+1], &id->mob[k], (MAX_SEARCH-k-1)*sizeof(id->mob[0]));
id->mob[k].chance = mob_db_data[class_]->dropitem[i].p;
id->mob[k].id = class_;
}
@@ -4028,8 +4029,8 @@ static int mob_read_sqldb(void)
}
if (k == MAX_SEARCH)
continue;
-
- memmove(&id->mob[k+1], &id->mob[k], (MAX_SEARCH-k-1)*sizeof(id->mob[0]));
+ if (id->mob[k].id != class_)
+ memmove(&id->mob[k+1], &id->mob[k], (MAX_SEARCH-k-1)*sizeof(id->mob[0]));
id->mob[k].chance = mob_db_data[class_]->dropitem[i].p;
id->mob[k].id = class_;
}