fix: Cleans up movement code (#787)
* Removes FastMovementImpl since it isn't used and I am not convinced it is better. * Moves some of the new movement logic from FastMovementImpl to MovementImpl * Makes MovementImpl more readable
This commit is contained in:
parent
7785f7e06c
commit
73c65a43ad
13 changed files with 312 additions and 989 deletions
|
|
@ -185,13 +185,13 @@ namespace Server.Multis
|
|||
var data = TileData.ItemTable[entry.ItemId & TileData.MaxItemValue];
|
||||
|
||||
// door
|
||||
if ((data.Flags & TileFlag.Door) != 0)
|
||||
if (data.Door)
|
||||
{
|
||||
AddDoor(entry.ItemId, entry.OffsetX, entry.OffsetY, entry.OffsetZ);
|
||||
}
|
||||
else
|
||||
{
|
||||
Item st = new Static((int)entry.ItemId);
|
||||
Item st = new Static(entry.ItemId);
|
||||
|
||||
st.MoveToWorld(new Point3D(X + entry.OffsetX, Y + entry.OffsetY, entry.OffsetZ), Map);
|
||||
AddFixture(st);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue