-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:
parent
29970729cf
commit
6073dd60b9
@ -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)
|
||||||
|
@ -5585,10 +5585,9 @@ 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);
|
||||||
@ -5612,10 +5611,9 @@ 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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user