diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-24 23:58:40 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-24 23:58:40 +0000 |
commit | ec3f633cdaa6b4b0661400d2bada620f58987916 (patch) | |
tree | e1592c145f65a804d507d4e83bec3f875e2057f9 /src/map/clif.c | |
parent | ea40b015cb26db701961714237380e2e64525ae7 (diff) | |
download | hercules-ec3f633cdaa6b4b0661400d2bada620f58987916.tar.gz hercules-ec3f633cdaa6b4b0661400d2bada620f58987916.tar.bz2 hercules-ec3f633cdaa6b4b0661400d2bada620f58987916.tar.xz hercules-ec3f633cdaa6b4b0661400d2bada620f58987916.zip |
- Fixed Warp Portal.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5740 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 3f9e5e6c4..dd95009d8 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -5353,7 +5353,7 @@ int clif_skill_delunit(struct skill_unit *unit) * ワープ場所選択
*------------------------------------------
*/
-int clif_skill_warppoint(struct map_session_data *sd,int skill_num, int skill_lv,
+int clif_skill_warppoint(struct map_session_data *sd,int skill_num,int skill_lv,
const char *map1,const char *map2,const char *map3,const char *map4)
{
int fd;
@@ -5370,7 +5370,10 @@ int clif_skill_warppoint(struct map_session_data *sd,int skill_num, int skill_lv strncpy((char*)WFIFOP(fd,52),map4,MAP_NAME_LENGTH);
WFIFOSET(fd,packet_len_table[0x11c]);
sd->menuskill_id = skill_num;
- sd->menuskill_lv = skill_lv;
+ if (skill_num == AL_WARP)
+ sd->menuskill_lv = (sd->ud.skillx<<16)|sd->ud.skilly; //Store warp position here.
+ else
+ sd->menuskill_lv = skill_lv;
return 0;
}
/*==========================================
|