diff options
-rw-r--r-- | src/char_sql/char.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 8b0d7173d..d5d1395a7 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -1510,14 +1510,11 @@ int delete_char_sql(int char_id, int partner_id) mysql_free_result(sql_res); //Let's free this as soon as possible to avoid problems later on.
//check for config char del condition [Lupus]
- if(char_del_level!=0){
- if(
- ( char_del_level > 0 && char_base_level >= char_del_level )
- || ( char_del_level < 0 && char_base_level <= -char_del_level )
- ) {
+ if( ( char_del_level > 0 && char_base_level >= char_del_level )
+ || ( char_del_level < 0 && char_base_level <= -char_del_level )
+ ) {
ShowInfo("Char deletion aborted: %s, BaseLevel: %i\n",char_name,char_base_level);
return -1;
- }
}
/* Divorce [Wizputer] */
@@ -3526,7 +3523,7 @@ int parse_char(int fd) { RFIFOSKIP(fd, 46);
break;
}
- }
+ }
for(i = 0; i < 9; i++) {
/* Debug:
@@ -3585,7 +3582,7 @@ int parse_char(int fd) { mapif_sendall(buf,10);
}
}
- /* Char successfully deleted.
+ /* Char successfully deleted.*/
WFIFOW(fd, 0) = 0x6f;
WFIFOSET(fd, 2);
|