summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-14 21:48:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-25 01:43:47 +0300
commit7e9b5edffcca79507538af3c3e01fba03e1e4e37 (patch)
treeca0ab66cfa931e97a59d0e62556c2960866909e1 /src/map/clif.c
parent95bdf27b863fec3a3da9721d6e1506772d61873b (diff)
downloadhercules-7e9b5edffcca79507538af3c3e01fba03e1e4e37.tar.gz
hercules-7e9b5edffcca79507538af3c3e01fba03e1e4e37.tar.bz2
hercules-7e9b5edffcca79507538af3c3e01fba03e1e4e37.tar.xz
hercules-7e9b5edffcca79507538af3c3e01fba03e1e4e37.zip
Fix style in function clif_guild_memberlist.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 089aa00d8..c01e56d35 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -7532,33 +7532,33 @@ void clif_guild_memberlist(struct map_session_data *sd)
struct guild *g;
nullpo_retv(sd);
- if( (fd = sd->fd) == 0 )
+ if ((fd = sd->fd) == 0)
return;
- if( (g = sd->guild) == NULL )
+ if ((g = sd->guild) == NULL)
return;
WFIFOHEAD(fd, g->max_member * 104 + 4);
- WFIFOW(fd, 0)=0x154;
- for(i=0,c=0;i<g->max_member;i++){
- struct guild_member *m=&g->member[i];
- if(m->account_id==0)
+ WFIFOW(fd, 0) = 0x154;
+ for (i = 0, c = 0; i < g->max_member; i++) {
+ struct guild_member *m = &g->member[i];
+ if (m->account_id == 0)
continue;
- WFIFOL(fd,c*104+ 4)=m->account_id;
- WFIFOL(fd,c*104+ 8)=m->char_id;
- WFIFOW(fd,c*104+12)=m->hair;
- WFIFOW(fd,c*104+14)=m->hair_color;
- WFIFOW(fd,c*104+16)=m->gender;
- WFIFOW(fd,c*104+18)=m->class;
- WFIFOW(fd,c*104+20)=m->lv;
- WFIFOL(fd,c*104+22)=(int)cap_value(m->exp,0,INT32_MAX);
- WFIFOL(fd,c*104+26)=m->online;
- WFIFOL(fd,c*104+30)=m->position;
- memset(WFIFOP(fd,c*104+34),0,50); //[Ind] - This is displayed in the 'note' column but being you can't edit it it's sent empty.
- memcpy(WFIFOP(fd,c*104+84),m->name,NAME_LENGTH);
+ WFIFOL(fd, c * 104 + 4) = m->account_id;
+ WFIFOL(fd, c * 104 + 8) = m->char_id;
+ WFIFOW(fd, c * 104 + 12) = m->hair;
+ WFIFOW(fd, c * 104 + 14) = m->hair_color;
+ WFIFOW(fd, c * 104 + 16) = m->gender;
+ WFIFOW(fd, c * 104 + 18) = m->class;
+ WFIFOW(fd, c * 104 + 20) = m->lv;
+ WFIFOL(fd, c * 104 + 22) = (int)cap_value(m->exp, 0, INT32_MAX);
+ WFIFOL(fd, c * 104 + 26) = m->online;
+ WFIFOL(fd, c * 104 + 30) = m->position;
+ memset(WFIFOP(fd, c * 104 + 34), 0, 50); //[Ind] - This is displayed in the 'note' column but being you can't edit it it's sent empty.
+ memcpy(WFIFOP(fd, c * 104 + 84), m->name, NAME_LENGTH);
c++;
}
- WFIFOW(fd, 2)=c*104+4;
- WFIFOSET(fd,WFIFOW(fd,2));
+ WFIFOW(fd, 2) = c * 104 + 4;
+ WFIFOSET(fd, WFIFOW(fd, 2));
}
/// Guild position name information (ZC_POSITION_ID_NAME_INFO).