summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:02:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-02-12 18:02:41 +0000
commit16c5028d6274e5c1a21dfcc0f26f926597ff2edd (patch)
tree18dafae15f96bf4403e492da64ea473513890760 /src/map/map.c
parent97353c7d82e3537982d2687f3b16a6c92e25b33b (diff)
downloadhercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.gz
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.bz2
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.tar.xz
hercules-16c5028d6274e5c1a21dfcc0f26f926597ff2edd.zip
- Corrected range of self destruction / bio explosion to be equal to their splash range.
- Corrected Spider Web casting around caster instead of target's position - Corrected a possible crash during login due to checking for the incorrect variable (lets pc_calc_status be invoked when it shouldn't) - Reenabled the base status aspd calculation for homunc (status_calc_bl calculates battle_status, status_calc_homunculus calculates base_status, they are not the same!) - Corrected the meaning of "skill_display_fail&2", made 2 the default setting. - Added bounds checking to map_foreachincell - Opt2 values (poison, blind, and so on) are now resent on warp/map-change - Corrected description of isloggedin script command. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9853 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c
index af3f48ad0..02d3bbdeb 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -996,6 +996,8 @@ int map_foreachincell(int (*func)(struct block_list*,va_list),int m,int x,int y,
va_list ap;
int blockcount=bl_list_count,i,c;
+ if (x < 0 || y < 0 || x >= map[m].xs || y >= map[m].ys) return 0;
+
va_start(ap,type);
by=y/BLOCK_SIZE;