summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-28 16:59:58 +0000
committerParadox924X <Paradox924X@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-08-28 16:59:58 +0000
commit8c99e2802fa920d35514c522180c5164199b321a (patch)
tree448db595b6f66b65ee6efb8d7c7172e8512501ad
parentf83fd90579f5258ff145f9685499b67c5cd1fc68 (diff)
downloadhercules-8c99e2802fa920d35514c522180c5164199b321a.tar.gz
hercules-8c99e2802fa920d35514c522180c5164199b321a.tar.bz2
hercules-8c99e2802fa920d35514c522180c5164199b321a.tar.xz
hercules-8c99e2802fa920d35514c522180c5164199b321a.zip
Replaced a map_moveblock() call with a call to unit_movepos() to prevent an exploit.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14396 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/map/skill.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 3cccc6059..2e33c0ef0 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
+2010/08/28
+ * Replaced a map_moveblock() call with a call to unit_movepos() to prevent an exploit. [Paradox924X]
2010/08/26
* Rev. 14395 instance_npcname will now error if the NPC being looked up is not found, care of ramsey. [L0ne_W0lf]
* delitem/2 will now send the close button when failing to find all neccecary items to delete.
diff --git a/src/map/skill.c b/src/map/skill.c
index 476008bf9..0212516a5 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -7580,7 +7580,7 @@ int skill_unit_onplace_timer (struct skill_unit *src, struct block_list *bl, uns
const struct TimerData* td = tsc->data[type]?get_timer(tsc->data[type]->timer):NULL;
if( td )
sec = DIFF_TICK(td->tick, tick);
- map_moveblock(bl, src->bl.x, src->bl.y, tick);
+ unit_movepos(bl, src->bl.x, src->bl.y, 0, 0);
clif_fixpos(bl);
sg->val2 = bl->id;
}