Merge branch 'master' into hotfix/vanilmirth_skills
This commit is contained in:
commit
4c5ad8d667
@ -309,8 +309,10 @@ int chclif_parse_pincode_setnew( int fd, struct char_session_data* sd ){
|
|||||||
if( charserv_config.pincode_config.pincode_enabled==0 || RFIFOL(fd,2) != sd->account_id ) {
|
if( charserv_config.pincode_config.pincode_enabled==0 || RFIFOL(fd,2) != sd->account_id ) {
|
||||||
set_eof(fd);
|
set_eof(fd);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
} else if (strnlen(sd->pincode, PINCODE_LENGTH) > 0) {
|
||||||
else {
|
set_eof(fd);
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
char newpin[PINCODE_LENGTH+1];
|
char newpin[PINCODE_LENGTH+1];
|
||||||
memset(newpin,0,PINCODE_LENGTH+1);
|
memset(newpin,0,PINCODE_LENGTH+1);
|
||||||
strncpy( newpin, RFIFOCP(fd,6), PINCODE_LENGTH );
|
strncpy( newpin, RFIFOCP(fd,6), PINCODE_LENGTH );
|
||||||
|
|||||||
@ -8871,13 +8871,14 @@ static void clif_guild_positioninfolist(map_session_data& sd){
|
|||||||
|
|
||||||
for(size_t i=0;i<MAX_GUILDPOSITION;i++){
|
for(size_t i=0;i<MAX_GUILDPOSITION;i++){
|
||||||
guild_position& gp = g->guild.position[i];
|
guild_position& gp = g->guild.position[i];
|
||||||
|
PACKET_ZC_POSITION_INFO_sub& position = p->posInfo[i];
|
||||||
|
|
||||||
p->posInfo[i].positionID = i;
|
position.positionID = static_cast<decltype(position.positionID)>( i );
|
||||||
p->posInfo[i].right = gp.mode;
|
position.right = gp.mode;
|
||||||
p->posInfo[i].ranking = i;
|
position.ranking = static_cast<decltype(position.ranking)>( i );
|
||||||
p->posInfo[i].payRate = gp.exp_mode;
|
position.payRate = gp.exp_mode;
|
||||||
|
|
||||||
p->PacketLength += static_cast<decltype(p->PacketLength)>( sizeof( p->posInfo[0] ) );
|
p->PacketLength += static_cast<decltype(p->PacketLength)>( sizeof( position ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
clif_send(p,p->PacketLength,&sd.bl,SELF);
|
clif_send(p,p->PacketLength,&sd.bl,SELF);
|
||||||
|
|||||||
@ -4998,15 +4998,17 @@ struct PACKET_ZC_POSITION_ID_NAME_INFO {
|
|||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
DEFINE_PACKET_HEADER(ZC_POSITION_ID_NAME_INFO, 0x0166);
|
DEFINE_PACKET_HEADER(ZC_POSITION_ID_NAME_INFO, 0x0166);
|
||||||
|
|
||||||
struct PACKET_ZC_POSITION_INFO {
|
struct PACKET_ZC_POSITION_INFO_sub {
|
||||||
int16 PacketType;
|
|
||||||
int16 PacketLength;
|
|
||||||
struct {
|
|
||||||
int positionID;
|
int positionID;
|
||||||
int right;
|
int right;
|
||||||
int ranking;
|
int ranking;
|
||||||
int payRate;
|
int payRate;
|
||||||
} posInfo[MAX_GUILDPOSITION];
|
} __attribute__((packed));
|
||||||
|
|
||||||
|
struct PACKET_ZC_POSITION_INFO {
|
||||||
|
int16 PacketType;
|
||||||
|
int16 PacketLength;
|
||||||
|
struct PACKET_ZC_POSITION_INFO_sub posInfo[];
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
DEFINE_PACKET_HEADER(ZC_POSITION_INFO, 0x0160);
|
DEFINE_PACKET_HEADER(ZC_POSITION_INFO, 0x0160);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user