summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-09 04:05:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-09 04:05:48 +0000
commit73662d19496bdc70665f2320197c5f44badf216c (patch)
tree3875e0d6394c8a9c0f48c1e0d6c441b701fcbf27 /src/map/mob.c
parent24529c54335507120027e9bee13c374dd4f0cd69 (diff)
downloadhercules-73662d19496bdc70665f2320197c5f44badf216c.tar.gz
hercules-73662d19496bdc70665f2320197c5f44badf216c.tar.bz2
hercules-73662d19496bdc70665f2320197c5f44badf216c.tar.xz
hercules-73662d19496bdc70665f2320197c5f44badf216c.zip
- Fixed a bug that was making the no_spawn_on_player setting useless.
- Added Deadly Poison and Bleeding to status_get_sc_def, meaning that now vit does increases defense against being inflicted from it. - Fixed a crash and an infinite loop in @whodrops @.@ - Expanded the item_db column sizes for the names to 50. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5526 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 036461ea3..5a0b7d422 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1079,7 +1079,8 @@ int mob_spawn (int id)
//Avoid spawning on the view-range of players. [Skotlex]
if (battle_config.no_spawn_on_player &&
c++ < battle_config.no_spawn_on_player &&
- map_foreachinrange(mob_count_sub, &md->bl, AREA_SIZE, BL_PC)
+ map_foreachinarea(mob_count_sub, md->m,
+ x-AREA_SIZE, y-AREA_SIZE, x+AREA_SIZE, y+AREA_SIZE, BL_PC)
)
continue;
//Found a spot.