- Fixed signed/unsigned comparison issues in the char txt/sql server.

- Fixed the cooking success chances. Thanks to Ishizu Chan.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex
2006-07-07 13:48:54 +00:00
parent ea9fb7a4ec
commit deba53730f
8 changed files with 19 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ struct accreg {
static struct accreg *accreg_pt;
int party_share_level = 10;
unsigned int party_share_level = 10;
int kick_on_disconnect = 1;
MYSQL mysql_handle;
MYSQL_RES* sql_res ;
@@ -260,8 +260,7 @@ int inter_config_read(const char *cfgName) {
kick_on_disconnect=atoi(w2);
}
else if(strcmpi(w1,"party_share_level")==0){
party_share_level=atoi(w2);
if(party_share_level < 0) party_share_level = 0;
party_share_level=(unsigned int)atof(w2);
}
else if(strcmpi(w1,"log_inter")==0){
log_inter = atoi(w2);