View Single Post
Old 06-17-2005, 06:44 AM   #1 (permalink)
pinco
Forum Novice
 
Join Date: Aug 2003
Posts: 124
Send a message via ICQ to pinco
Default Character list sort

when someone delete a character in the list remain a "hole", with this modification we solve the problem. Let's start the editing from Packet.cs in the core files.

after line 2922, exactly after this:


Code:
 for ( int i = 0; i < a.Length; ++i ) 
{ 
if ( a != null ) 
highSlot = i; 
}

and after line 2891, exactly after this:



Code:
 m_Stream.Write( (byte) a.Count );
add this code block:



Code:
 // Sort for update list by Keldron Isenhart 
for ( int i = 0; i < a.Length; ++i ) 
{ 
for ( int j = i; j < a.Length; ++j ) 
{ 
if (a==null) 
{ 
a=a[j]; 
a[j]=null; 
} 
} 
} 
//end sort 
at last, compile the core and try, the problem is solved
pinco is offline   Reply With Quote