From 16f723cff269a88d66ad212eb9a251036858c949 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 20 Aug 2017 04:11:16 +0300 Subject: Remove useless code from doorUnTouch function. --- npc/functions/doors.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'npc') diff --git a/npc/functions/doors.txt b/npc/functions/doors.txt index 72bd6012..c1b6565e 100644 --- a/npc/functions/doors.txt +++ b/npc/functions/doors.txt @@ -17,19 +17,7 @@ function script doorTouch { } function script doorUnTouch { - if (.map$ == "") - { - if (getmapxy(.@map$, .@x, .@y, UNITTYPE_NPC) != 0) - { - close; - } - } - else - { - .@map$ = .map$; - } - - if (getareausers(.@map$) == 0) + if (getareausers(.map$) == 0) { .dir = 4; initnpctimer; -- cgit v1.2.3-70-g09d2