-Follow up r17232 fix wrong index assignement in deleting chan. (issue created in r17232 sorry)

rechange unwanted chande for pincode default value.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17233 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
glighta 2013-04-07 09:55:04 +00:00
parent 29970729cf
commit 6073dd60b9
2 changed files with 8 additions and 10 deletions

View File

@ -165,7 +165,7 @@ db_path: db
// NOTE: Requires client 2011-03-09aragexeRE or newer. // NOTE: Requires client 2011-03-09aragexeRE or newer.
// A window is opened before you can select your character and you will have to enter a pincode by using only your mouse. // A window is opened before you can select your character and you will have to enter a pincode by using only your mouse.
// Default: yes // Default: yes
pincode_enabled: no pincode_enabled: yes
// How often does a user have to change his pincode? // How often does a user have to change his pincode?
// 0: never (default) // 0: never (default)

View File

@ -5585,11 +5585,10 @@ void clif_chsys_left(struct raChSysCh *channel, struct map_session_data *sd) {
for( i = 0; i < sd->channel_count; i++ ) { for( i = 0; i < sd->channel_count; i++ ) {
if( sd->channels[i] == NULL ) if( sd->channels[i] == NULL )
continue; continue;
if( cursor != i ) { if( cursor != i )
sd->channels[cursor] = sd->channels[i]; sd->channels[cursor] = sd->channels[i];
cursor++; cursor++;
} }
}
if ( !(sd->channel_count = cursor) ) { if ( !(sd->channel_count = cursor) ) {
aFree(sd->channels); aFree(sd->channels);
sd->channels = NULL; sd->channels = NULL;
@ -5612,11 +5611,10 @@ void clif_chsys_delete(struct raChSysCh *channel) {
for( i = 0; i < sd->channel_count; i++ ) { //move down links for( i = 0; i < sd->channel_count; i++ ) { //move down links
if( sd->channels[i] == NULL ) if( sd->channels[i] == NULL )
continue; continue;
if( cursor != i ) { if( cursor != i )
sd->channels[cursor] = sd->channels[i]; sd->channels[cursor] = sd->channels[i];
cursor++; cursor++;
} }
}
if ( !(sd->channel_count = cursor) ) { //news chan count = total if ( !(sd->channel_count = cursor) ) { //news chan count = total
aFree(sd->channels); aFree(sd->channels);
sd->channels = NULL; sd->channels = NULL;