summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-13 00:45:55 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-13 00:45:55 +0000
commit3cf706a09c00cf3ceee18a1a26446e3edafdbbec (patch)
treed6238ce920f94a6fb31d94da69e2cb4094478e3b /src/map/skill.c
parentca5e45d061b2d70499651d437a2d7f97f0ebbb67 (diff)
downloadhercules-3cf706a09c00cf3ceee18a1a26446e3edafdbbec.tar.gz
hercules-3cf706a09c00cf3ceee18a1a26446e3edafdbbec.tar.bz2
hercules-3cf706a09c00cf3ceee18a1a26446e3edafdbbec.tar.xz
hercules-3cf706a09c00cf3ceee18a1a26446e3edafdbbec.zip
- Changed slave chasing from using unit_walktobl to map_search_freecell + unit_walktoxy, since the previous behaviour makes all slaves always end up on the same cell.
- Changed some function declarations to take x,y arguments as short rather than int. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6024 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index 92ea69325..f17d63952 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -2349,7 +2349,7 @@ static int skill_timerskill(int tid, unsigned int tick, int id,int data )
switch(skl->skill_id) {
case RG_INTIMIDATE:
if (unit_warp(src,-1,-1,-1,3) == 0) {
- int x,y;
+ short x,y;
map_search_freecell(src, 0, &x, &y, 1, 1, 0);
if (!status_isdead(target))
unit_warp(target, -1, x, y, 3);
@@ -6003,7 +6003,7 @@ int skill_castend_pos2( struct block_list *src, int x,int y,int skillid,int skil
case WZ_METEOR: //ƒ?ƒeƒIƒXƒg?ƒ€
{
int flag=0, area = skill_get_splash(skillid, skilllv);
- int tmpx, tmpy, x1 = 0, y1 = 0;
+ short tmpx, tmpy, x1 = 0, y1 = 0;
if (sc && sc->data[SC_MAGICPOWER].timer != -1)
flag = flag|2; //Store the magic power flag for future use. [Skotlex]
for(i=0;i<2+(skilllv>>1);i++) {