summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-13 14:35:43 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-13 14:35:43 +0000
commit18282ae649b0c2d54deaba32132171cbf56a1868 (patch)
tree9c14a42cb333a4e6dc4f512c050b54b37fddcff7 /src/map/clif.c
parent61ac274ddcc1307b86d31d152260bf6dcd1360c3 (diff)
downloadhercules-18282ae649b0c2d54deaba32132171cbf56a1868.tar.gz
hercules-18282ae649b0c2d54deaba32132171cbf56a1868.tar.bz2
hercules-18282ae649b0c2d54deaba32132171cbf56a1868.tar.xz
hercules-18282ae649b0c2d54deaba32132171cbf56a1868.zip
- Volcano/Deluge/Violent Gale are now interchangeable, in the sense that as long as one of these is out, casting any of the three will not consume gems, and will use the remaining time of the previous one. In turn, Land Protector will now always consume gems on every cast.
- Small cleanup in the Land protector code which may fix it not blocking AoE skills. - Fixed the interpretation of "head_dir". Removed setting head_dir to match character direction in the whole code. Now it is only reset to 0 (look forward) when unit_setpos is invoked, or when a character begins walking. Thanks to FlavioJS for figuring out how the client parses the head direction. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9206 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 4a9dab5ed..e79b7f78e 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -919,7 +919,7 @@ static int clif_set0078(struct block_list *bl, struct view_data *vd, unsigned ch
WBUFW(buf,28)=vd->head_mid;
WBUFW(buf,30)=vd->hair_color;
WBUFW(buf,32)=vd->cloth_color;
- WBUFW(buf,34)=sd?sd->head_dir:dir;
+ WBUFW(buf,34)=sd?sd->head_dir:0;
WBUFL(buf,36)=guild_id;
WBUFW(buf,40)=emblem_id;
if (sd) {
@@ -954,7 +954,7 @@ static int clif_set0078(struct block_list *bl, struct view_data *vd, unsigned ch
WBUFW(buf,26)=vd->head_mid;
WBUFW(buf,28)=vd->hair_color;
WBUFW(buf,30)=vd->cloth_color;
- WBUFW(buf,32)=sd?sd->head_dir:dir;
+ WBUFW(buf,32)=sd?sd->head_dir:0;
WBUFL(buf,34)=guild_id;
WBUFW(buf,38)=emblem_id;
if (sd) {
@@ -989,7 +989,7 @@ static int clif_set0078(struct block_list *bl, struct view_data *vd, unsigned ch
WBUFW(buf,26)=vd->head_mid;
WBUFW(buf,28)=vd->hair_color;
WBUFW(buf,30)=vd->cloth_color;
- WBUFW(buf,32)=sd?sd->head_dir:dir;
+ WBUFW(buf,32)=sd?sd->head_dir:0;
WBUFL(buf,34)=guild_id;
WBUFL(buf,38)=emblem_id;
if (sd)
@@ -1073,7 +1073,7 @@ static int clif_set007b(struct block_list *bl, struct view_data *vd, struct unit
WBUFW(buf,32)=vd->head_mid;
WBUFW(buf,34)=vd->hair_color;
WBUFW(buf,36)=vd->cloth_color;
- WBUFW(buf,38)=sd?sd->head_dir:unit_getdir(bl);
+ WBUFW(buf,38)=sd?sd->head_dir:0;
WBUFL(buf,40)=guild_id;
WBUFW(buf,44)=emblem_id;
if (sd) {
@@ -1110,7 +1110,7 @@ static int clif_set007b(struct block_list *bl, struct view_data *vd, struct unit
WBUFW(buf,30)=vd->head_mid;
WBUFW(buf,32)=vd->hair_color;
WBUFW(buf,34)=vd->cloth_color;
- WBUFW(buf,36)=sd?sd->head_dir:unit_getdir(bl);
+ WBUFW(buf,36)=sd?sd->head_dir:0;
WBUFL(buf,38)=guild_id;
WBUFW(buf,42)=emblem_id;
if (sd) {
@@ -1147,7 +1147,7 @@ static int clif_set007b(struct block_list *bl, struct view_data *vd, struct unit
WBUFW(buf,30)=vd->head_mid;
WBUFW(buf,32)=vd->hair_color;
WBUFW(buf,34)=vd->cloth_color;
- WBUFW(buf,36)=sd?sd->head_dir:unit_getdir(bl);
+ WBUFW(buf,36)=sd?sd->head_dir:0;
WBUFL(buf,38)=guild_id;
WBUFL(buf,42)=emblem_id;
if (sd)