Follow up patch for UOP packed map file support, now accounts for the second index table in the Felucca/Trammel map files.

This commit is contained in:
eos 2012-03-15 23:08:23 +00:00
parent 339f2032b9
commit 06975930b9

View file

@ -488,7 +488,10 @@ namespace Server
int offset = ((x * m_BlockHeight) + y) * 196 + 4;
if ( m_MapUOPPacked )
offset += 0xD88 + ( 12 * ( offset / 0xC4000 ) );
{
int block = offset / 0xC4000;
offset += 0xD88 + ( 0xD54 * ( block / 100 ) ) + ( 12 * block );
}
m_Map.Seek( offset, SeekOrigin.Begin );