diff options
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index af22a84de..ef8dbf8be 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1004,10 +1004,9 @@ int npc_touch_areanpc2(struct block_list *bl) if (xs < 0) // Can't warp object between map servers...
return 0;
- if(battle_config.mob_npc_warp<2 && map[xs].flag.nobranch)
- return 0; //Disable warps to nobranch maps.
-
- unit_warp(bl, xs, map[m].npc[i]->u.warp.x,map[m].npc[i]->u.warp.y,0);
+ if (unit_warp(bl, xs, map[m].npc[i]->u.warp.x,map[m].npc[i]->u.warp.y,0))
+ return 0; //Failed to warp.
+
return 1;
}
|