Removed account gender (#5006)
Adds an upgrade script to change all existing entries to the respective gender in their account. Cleanup of a few strange design decisions in the character server code. Removed SEX_ACCOUNT. Thanks to @Daegaladh for his help.
This commit is contained in:
@@ -1013,8 +1013,6 @@ int chmapif_parse_reqauth(int fd, int id){
|
||||
}
|
||||
if( runflag == CHARSERVER_ST_RUNNING && autotrade && cd ){
|
||||
uint16 mmo_charstatus_len = sizeof(struct mmo_charstatus) + 25;
|
||||
if (cd->sex == SEX_ACCOUNT)
|
||||
cd->sex = sex;
|
||||
|
||||
WFIFOHEAD(fd,mmo_charstatus_len);
|
||||
WFIFOW(fd,0) = 0x2afd;
|
||||
@@ -1042,8 +1040,6 @@ int chmapif_parse_reqauth(int fd, int id){
|
||||
)
|
||||
{// auth ok
|
||||
uint16 mmo_charstatus_len = sizeof(struct mmo_charstatus) + 25;
|
||||
if (cd->sex == SEX_ACCOUNT)
|
||||
cd->sex = sex;
|
||||
|
||||
WFIFOHEAD(fd,mmo_charstatus_len);
|
||||
WFIFOW(fd,0) = 0x2afd;
|
||||
|
||||
Reference in New Issue
Block a user