summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-08 16:19:02 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-08 16:19:02 +0000
commit3f355729f457c4138f78a71c5019a208f2597e3c (patch)
tree1390d2d77bccad133324ad9b33d3fb4e5e61633c /src/map/clif.c
parent0cd2095db1f8373b8b1b253ef850c2a4059316d0 (diff)
downloadhercules-3f355729f457c4138f78a71c5019a208f2597e3c.tar.gz
hercules-3f355729f457c4138f78a71c5019a208f2597e3c.tar.bz2
hercules-3f355729f457c4138f78a71c5019a208f2597e3c.tar.xz
hercules-3f355729f457c4138f78a71c5019a208f2597e3c.zip
- Fixed compilation error.
- idletime will now be updated on attack-request, not on sit/standup - Party members sitting will no longer be considered idle. - hide_gvg_damage will now send 1 instead of -1 as damage. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6517 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9cecbf858..6f3cfb95a 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -3872,8 +3872,8 @@ int clif_damage(struct block_list *src,struct block_list *dst,unsigned int tick,
WBUFL(buf,14)=sdelay;
WBUFL(buf,18)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,22)=-1;
- WBUFW(buf,27)=-1;
+ WBUFW(buf,22)=1;
+ WBUFW(buf,27)=1;
} else {
WBUFW(buf,22)=(damage > SHRT_MAX)?SHRT_MAX:damage;
WBUFW(buf,27)=damage2;
@@ -4392,7 +4392,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst,
WBUFL(buf,16)=sdelay;
WBUFL(buf,20)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,24)=-1;
+ WBUFW(buf,24)=1;
} else {
WBUFW(buf,24)=damage;
}
@@ -4423,7 +4423,7 @@ int clif_skill_damage(struct block_list *src,struct block_list *dst,
WBUFL(buf,16)=sdelay;
WBUFL(buf,20)=ddelay;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFL(buf,24)=-1;
+ WBUFL(buf,24)=1;
} else {
WBUFL(buf,24)=damage;
}
@@ -4483,7 +4483,7 @@ int clif_skill_damage2(struct block_list *src,struct block_list *dst,
WBUFW(buf,24)=dst->x;
WBUFW(buf,26)=dst->y;
if (battle_config.hide_woe_damage && map_flag_gvg(src->m)) {
- WBUFW(buf,28)=-1;
+ WBUFW(buf,28)=1;
} else {
WBUFW(buf,28)=damage;
}
@@ -8723,8 +8723,6 @@ void clif_parse_ActionRequest(int fd, struct map_session_data *sd) {
target_id = RFIFOL(fd,packet_db[sd->packet_ver][RFIFOW(fd,0)].pos[0]);
action_type = RFIFOB(fd,packet_db[sd->packet_ver][RFIFOW(fd,0)].pos[1]);
- //Regardless of what they have to do, they have just requested an action, no longer idle. [Skotlex]
- sd->idletime = last_tick;
if(target_id<0) // for disguises [Valaris]
target_id-=(target_id*2);
@@ -8747,6 +8745,8 @@ void clif_parse_ActionRequest(int fd, struct map_session_data *sd) {
}
if (sd->invincible_timer != -1)
pc_delinvincibletimer(sd);
+
+ sd->idletime = last_tick;
unit_attack(&sd->bl, target_id, action_type != 0);
break;
case 0x02: // sitdown