summaryrefslogtreecommitdiff
path: root/npc/functions/ghost.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-29 20:30:21 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-29 20:30:21 -0300
commit8957483e7196d21db0fb6257fedbea01b59cf53b (patch)
tree0b7443a54ec60a42f1b0373f2374d8e3b453bbcb /npc/functions/ghost.txt
parentabfaf3520d1c4143fa3e9ed9de53a9f3314455ec (diff)
downloadserverdata-stable.tar.gz
serverdata-stable.tar.bz2
serverdata-stable.tar.xz
serverdata-stable.zip
Fix minor issuesstable
Diffstat (limited to 'npc/functions/ghost.txt')
-rw-r--r--npc/functions/ghost.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/ghost.txt b/npc/functions/ghost.txt
index 1325525b..3e1a9724 100644
--- a/npc/functions/ghost.txt
+++ b/npc/functions/ghost.txt
@@ -13,8 +13,8 @@ function script SpawnGhost {
return;
L_Spawn:
- .@x = POS_X;
- .@y = POS_Y;
+ .@x = getx();
+ .@y = gety();
if (!(iscollision(getmapname(), .@x, .@y - 1))) set .@y, .@y - 1; // up
else if (!(iscollision(getmapname(), .@x, .@y + 1))) set .@y, .@y + 1; // down