summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-14 22:10:59 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-25 01:43:47 +0300
commit2077ef6398d03747743d0f5bff8cfcc98fdb512d (patch)
tree65db10ee010026ee3f012c5426ab43c5c96a7111 /src/map
parentf13f809a163b3974a34211fe30ebdd659cf7edcb (diff)
downloadhercules-2077ef6398d03747743d0f5bff8cfcc98fdb512d.tar.gz
hercules-2077ef6398d03747743d0f5bff8cfcc98fdb512d.tar.bz2
hercules-2077ef6398d03747743d0f5bff8cfcc98fdb512d.tar.xz
hercules-2077ef6398d03747743d0f5bff8cfcc98fdb512d.zip
Fix style in clif_party_member_info.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index fdfda603c..c89a033e8 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -6539,25 +6539,26 @@ void clif_party_member_info(struct party_data *p, struct map_session_data *sd)
nullpo_retv(p);
nullpo_retv(sd);
if (!sd) { //Pick any party member (this call is used when changing item share rules)
- ARR_FIND( 0, MAX_PARTY, i, p->data[i].sd != 0 );
+ ARR_FIND(0, MAX_PARTY, i, p->data[i].sd != 0);
} else {
- ARR_FIND( 0, MAX_PARTY, i, p->data[i].sd == sd );
+ ARR_FIND(0, MAX_PARTY, i, p->data[i].sd == sd);
}
- if (i >= MAX_PARTY) return; //Should never happen...
+ if (i >= MAX_PARTY)
+ return; //Should never happen...
sd = p->data[i].sd;
WBUFW(buf, 0) = 0x1e9;
WBUFL(buf, 2) = sd->status.account_id;
- WBUFL(buf, 6) = (p->party.member[i].leader)?0:1;
- WBUFW(buf,10) = sd->bl.x;
- WBUFW(buf,12) = sd->bl.y;
- WBUFB(buf,14) = (p->party.member[i].online)?0:1;
- memcpy(WBUFP(buf,15), p->party.name, NAME_LENGTH);
- memcpy(WBUFP(buf,39), sd->status.name, NAME_LENGTH);
- mapindex->getmapname_ext(map->list[sd->bl.m].custom_name ? map->list[map->list[sd->bl.m].instance_src_map].name : map->list[sd->bl.m].name, WBUFP(buf,63));
- WBUFB(buf,79) = (p->party.item&1)?1:0;
- WBUFB(buf,80) = (p->party.item&2)?1:0;
- clif->send(buf,packet_len(0x1e9),&sd->bl,PARTY);
+ WBUFL(buf, 6) = (p->party.member[i].leader) ? 0 : 1;
+ WBUFW(buf, 10) = sd->bl.x;
+ WBUFW(buf, 12) = sd->bl.y;
+ WBUFB(buf, 14) = (p->party.member[i].online) ? 0 : 1;
+ memcpy(WBUFP(buf, 15), p->party.name, NAME_LENGTH);
+ memcpy(WBUFP(buf, 39), sd->status.name, NAME_LENGTH);
+ mapindex->getmapname_ext(map->list[sd->bl.m].custom_name ? map->list[map->list[sd->bl.m].instance_src_map].name : map->list[sd->bl.m].name, WBUFP(buf, 63));
+ WBUFB(buf, 79) = (p->party.item & 1) ? 1 : 0;
+ WBUFB(buf, 80) = (p->party.item & 2) ? 1 : 0;
+ clif->send(buf, packet_len(0x1e9), &sd->bl, PARTY);
}
/// Sends party information (ZC_GROUP_LIST).