diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-12 18:38:10 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-02-12 18:38:10 +0000 |
commit | 04866a6fc13775319e7af9bfa1af592742a08d07 (patch) | |
tree | 7cdb2f321a8e40de9178fd4f74528a9475545e19 /src/map/npc.c | |
parent | 16c5028d6274e5c1a21dfcc0f26f926597ff2edd (diff) | |
download | hercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.gz hercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.bz2 hercules-04866a6fc13775319e7af9bfa1af592742a08d07.tar.xz hercules-04866a6fc13775319e7af9bfa1af592742a08d07.zip |
- Fixed npc_check_areanpc, Wand of Hermod works now.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9854 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index cffe2a26e..0924e6c1f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1056,8 +1056,8 @@ int npc_check_areanpc(int flag,int m,int x,int y,int range) default: continue; } - if (x0 >= map[m].npc[i]->bl.x-xs/2 && x1 < map[m].npc[i]->bl.x-xs/2+xs && - y0 >= map[m].npc[i]->bl.y-ys/2 && y1 < map[m].npc[i]->bl.y-ys/2+ys) + if (x1 >= map[m].npc[i]->bl.x-xs/2 && x0 < map[m].npc[i]->bl.x-xs/2+xs && + y1 >= map[m].npc[i]->bl.y-ys/2 && y0 < map[m].npc[i]->bl.y-ys/2+ys) break; } if (i==map[m].npc_num) |