summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-04-09 02:52:10 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-04-11 12:10:57 +1200
commit5aac3f90243204ae8ef222375feccb7dc1898fa0 (patch)
tree4e83a752da89ce65b3339528dac75c96bb16a8bf /src/map/script.c
parent82e86bde167289ebc23ff02054da1ff0c35377f6 (diff)
downloadtmwa-5aac3f90243204ae8ef222375feccb7dc1898fa0.tar.gz
tmwa-5aac3f90243204ae8ef222375feccb7dc1898fa0.tar.bz2
tmwa-5aac3f90243204ae8ef222375feccb7dc1898fa0.tar.xz
tmwa-5aac3f90243204ae8ef222375feccb7dc1898fa0.zip
Fix npcwarp
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index adc9d36..84cf944 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -6875,8 +6875,10 @@ int buildin_npcwarp (struct script_state *st)
return -1;
npc_enable (npc, 0);
+ map_delblock(&nd->bl); /* [Freeyorp] */
nd->bl.x = x;
nd->bl.y = y;
+ map_addblock(&nd->bl);
npc_enable (npc, 1);
return 0;