فهرست منبع

Replaced a map_moveblock() call with a call to unit_movepos() to prevent an exploit.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14396 54d463be-8e91-2dee-dedb-b68131a5f0ec
Paradox924X 14 سال پیش
والد
کامیت
53f1cbbf6c
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/skill.c

+ 2 - 0
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.

+ 1 - 1
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;
 				}