Modernization Fixes & Updates to Default Values (#3)

This commit is contained in:
Kamron Batman 2018-10-28 00:33:16 -07:00 • committed by GitHub
parent 445eddff68
commit dcf64091b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
768 changed files with 10507 additions and 14196 deletions

View file

@ -235,15 +235,14 @@ namespace Server.Mobiles
PlaySound(0x491);
if (0.05 > Utility.RandomDouble())
Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerStateCallback(CreateBones_Callback), from);
Timer.DelayCall(TimeSpan.FromSeconds(1.0), CreateBones_Callback, from);
m_InHere = false;
}
}
public virtual void CreateBones_Callback(object state)
public virtual void CreateBones_Callback(Mobile from)
{
Mobile from = (Mobile)state;
Map map = from.Map;
if (map == null)
@ -257,11 +256,11 @@ namespace Server.Mobiles
int y = from.Y + Utility.RandomMinMax(-1, 1);
int z = from.Z;
if (!map.CanFit(x, y, z, 16, false, true))
if (!map.CanFit(x, y, z, 16))
{
z = map.GetAverageZ(x, y);
if (z == from.Z || !map.CanFit(x, y, z, 16, false, true))
if (z == from.Z || !map.CanFit(x, y, z, 16))
continue;
}