From 4c82cadd11defeb94ab9317af8b3b74884e745fc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 3 Mar 2019 14:19:28 -0300 Subject: Remove duplicate code --- npc/functions/main.txt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/npc/functions/main.txt b/npc/functions/main.txt index f491c24fe..56090e926 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -298,17 +298,6 @@ function script isin { return false; } -// isinrad( map, x1, y1, radius) -function script isin { - if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0) - return false; - if (.@mapName$ != getarg(0)) - return false; - if (.@xpos >= getarg(1) && .@xpos <= getarg(3) && .@ypos >= getarg(2) && .@ypos <= getarg(4)) - return true; - return false; -} - // Get some acc id, even if offline // ( Name ) function script gf_accid { -- cgit v1.2.3-60-g2f50