This commit is contained in:
parent
712037724a
commit
ac5a0827f2
7 changed files with 21 additions and 19 deletions
|
|
@ -1221,7 +1221,7 @@ namespace Server.Multis
|
|||
|
||||
foreach ( Item item in eable )
|
||||
{
|
||||
if ( item.ItemID > TileData.MaxItemValue || item.Z < p.Z || !item.Visible )
|
||||
if ( item is BaseMulti || item.ItemID > TileData.MaxItemValue || item.Z < p.Z || !item.Visible )
|
||||
continue;
|
||||
|
||||
int x = item.X - p.X + newComponents.Min.X;
|
||||
|
|
|
|||
|
|
@ -2242,7 +2242,7 @@ namespace Server.Multis
|
|||
|
||||
int byteIndex = (totalStairsUsed % MaxItemsPerStairBuffer) * 5;
|
||||
|
||||
stairBuffer[byteIndex++] = (byte)((mte.m_ItemID >> 8) & 0x3F);
|
||||
stairBuffer[byteIndex++] = (byte)(mte.m_ItemID >> 8);
|
||||
stairBuffer[byteIndex++] = (byte)mte.m_ItemID;
|
||||
|
||||
stairBuffer[byteIndex++] = (byte)mte.m_OffsetX;
|
||||
|
|
@ -2280,7 +2280,7 @@ namespace Server.Multis
|
|||
|
||||
int byteIndex = (totalStairsUsed % MaxItemsPerStairBuffer) * 5;
|
||||
|
||||
stairBuffer[byteIndex++] = (byte)((mte.m_ItemID >> 8) & 0x3F);
|
||||
stairBuffer[byteIndex++] = (byte)(mte.m_ItemID >> 8);
|
||||
stairBuffer[byteIndex++] = (byte)mte.m_ItemID;
|
||||
|
||||
stairBuffer[byteIndex++] = (byte)mte.m_OffsetX;
|
||||
|
|
@ -2292,7 +2292,7 @@ namespace Server.Multis
|
|||
else
|
||||
{
|
||||
m_PlaneUsed[plane] = true;
|
||||
m_PlaneBuffers[plane][index] = (byte)((mte.m_ItemID >> 8) & 0x3F);
|
||||
m_PlaneBuffers[plane][index] = (byte)(mte.m_ItemID >> 8);
|
||||
m_PlaneBuffers[plane][index + 1] = (byte)mte.m_ItemID;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue