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:
Lemongrass3110
2020-06-04 17:23:50 +02:00
committed by GitHub
parent afaee2f01d
commit 3ab1ada8d9
7 changed files with 134 additions and 101 deletions

View File

@@ -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;