From 06975930b9457d1f1e3756752d1015d558de9056 Mon Sep 17 00:00:00 2001 From: eos Date: Thu, 15 Mar 2012 23:08:23 +0000 Subject: [PATCH] Follow up patch for UOP packed map file support, now accounts for the second index table in the Felucca/Trammel map files. --- Server/TileMatrix.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Server/TileMatrix.cs b/Server/TileMatrix.cs index 585831ae9..a4a1cdb7f 100644 --- a/Server/TileMatrix.cs +++ b/Server/TileMatrix.cs @@ -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 );