summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/doors.txt14
1 files changed, 1 insertions, 13 deletions
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;