summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-18 02:30:29 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-18 02:30:29 +0000
commit16ef82dd78c2facf754e911fbaab1e5f279c50d4 (patch)
treeed4407541fca46ae03be4692f399eb3a5d9d96b5 /src/map/npc.c
parent462883b7cb02a2f229d0c53afd179163725d50de (diff)
downloadhercules-16ef82dd78c2facf754e911fbaab1e5f279c50d4.tar.gz
hercules-16ef82dd78c2facf754e911fbaab1e5f279c50d4.tar.bz2
hercules-16ef82dd78c2facf754e911fbaab1e5f279c50d4.tar.xz
hercules-16ef82dd78c2facf754e911fbaab1e5f279c50d4.zip
Fixed npc_debug_warps() not identifying x:0,y:0 as valid (random) coordinates
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11752 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index f90bce158..b7b8a5127 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2855,6 +2855,7 @@ static void npc_debug_warps_sub(struct npc_data* nd)
m = map_mapindex2mapid(nd->u.warp.mapindex);
if (m < 0) return; //Warps to another map, nothing to do about it.
+ if (nd->u.warp.x == 0 && nd->u.warp.y == 0) return; // random warp
if (map_getcell(m, nd->u.warp.x, nd->u.warp.y, CELL_CHKNPC)) {
ShowWarning("Warp %s at %s(%d,%d) warps directly on top of an area npc at %s(%d,%d)\n",