clif.c: In function âclif_guild_basicinfoâ:
clif.c:7235:28: warning: variable âbgdâ set but not used [-Wunused-but-set-variable]
[Source]
void clif_guild_basicinfo(struct map_session_data *sd) {
int fd;
struct guild *g;
struct battleground_data *bgd = NULL;
nullpo_retv(sd);
fd = sd->fd;
if( battle_config.bg_eamod_mode && sd->bg_id && (g = bg->guild_get(sd->bg_id)) != NULL )
bgd = bg->team_search(sd->bg_id);
else
g = sd->guild;
if( g == NULL )
return;
WFIFOHEAD(fd,packet_len(0x1b6));
WFIFOW(fd, 0)=0x1b6;//0x150;
WFIFOL(fd, 2)=g->guild_id;
WFIFOL(fd, 6)=g->guild_lv;
WFIFOL(fd,10)=g->connect_member;
WFIFOL(fd,14)=g->max_member;
WFIFOL(fd,18)=g->average_lv;
WFIFOL(fd,22)=(uint32)cap_value(g->exp,0,INT32_MAX);
WFIFOL(fd,26)=g->next_exp;
WFIFOL(fd,30)=0; // Tax Points
WFIFOL(fd,34)=0; // Honor: (left) Vulgar [-100,100] Famed (right)
WFIFOL(fd,38)=0; // Virtue: (down) Wicked [-100,100] Righteous (up)
WFIFOL(fd,42)=g->emblem_id;
memcpy(WFIFOP(fd,46),g->name, NAME_LENGTH);
memcpy(WFIFOP(fd,70),g->master, NAME_LENGTH);
safestrncpy((char*)WFIFOP(fd,94),msg_sd(sd,300+guild->checkcastles(g)),16); // "'N' castles"
WFIFOL(fd,110) = 0; // zeny
WFIFOSET(fd,packet_len(0x1b6));
}