This commit is contained in:
parent
34d969712e
commit
d444b9ba5c
70 changed files with 569 additions and 495 deletions
|
|
@ -1056,7 +1056,7 @@ namespace Server.Network
|
|||
int flags = pvSrc.ReadByte();
|
||||
Serial serial = pvSrc.ReadInt32();
|
||||
int x = pvSrc.ReadInt16(), y = pvSrc.ReadInt16(), z = pvSrc.ReadInt16();
|
||||
int graphic = pvSrc.ReadInt16();
|
||||
int graphic = pvSrc.ReadUInt16();
|
||||
|
||||
if ( targetID == unchecked( (int) 0xDEADBEEF ) )
|
||||
return;
|
||||
|
|
@ -1100,13 +1100,17 @@ namespace Server.Network
|
|||
}
|
||||
else
|
||||
{
|
||||
Tile[] tiles = map.Tiles.GetStaticTiles( x, y, !t.DisallowMultis );
|
||||
StaticTile[] tiles = map.Tiles.GetStaticTiles( x, y, !t.DisallowMultis );
|
||||
|
||||
bool valid = false;
|
||||
|
||||
ItemData id = TileData.ItemTable[graphic&TileData.MaxItemValue];
|
||||
if ( id.Surface )
|
||||
z -= id.Height;
|
||||
|
||||
for ( int i = 0; !valid && i < tiles.Length; ++i )
|
||||
{
|
||||
if ( tiles[i].Z == z && (tiles[i].ID & 0x3FFF) == (graphic & 0x3FFF) )
|
||||
if ( tiles[i].Z == z && tiles[i].ID == graphic )
|
||||
valid = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue