Clean up: Bugs, LINQ, constructors, default values, and null checks (#18)
This commit is contained in:
parent
e748af4430
commit
513e54f70e
1094 changed files with 15913 additions and 21892 deletions
|
|
@ -39,11 +39,11 @@ namespace Server
|
|||
From = new SecureTradeInfo(this, from, new SecureTradeContainer(this));
|
||||
To = new SecureTradeInfo(this, to, new SecureTradeContainer(this));
|
||||
|
||||
bool from6017 = from.NetState != null && from.NetState.ContainerGridLines;
|
||||
bool to6017 = to.NetState != null && to.NetState.ContainerGridLines;
|
||||
bool from6017 = from.NetState?.ContainerGridLines == true;
|
||||
bool to6017 = to.NetState?.ContainerGridLines == true;
|
||||
|
||||
bool from704565 = from.NetState != null && from.NetState.NewSecureTrading;
|
||||
bool to704565 = to.NetState != null && to.NetState.NewSecureTrading;
|
||||
bool from704565 = from.NetState?.NewSecureTrading == true;
|
||||
bool to704565 = to.NetState?.NewSecureTrading == true;
|
||||
|
||||
from.Send(new MobileStatus(from, to));
|
||||
from.Send(new UpdateSecureTrade(From.Container, false, false));
|
||||
|
|
@ -364,7 +364,7 @@ namespace Server
|
|||
|
||||
Mobile.AddItem(Container);
|
||||
|
||||
VirtualCheck = new VirtualCheck(0, 0);
|
||||
VirtualCheck = new VirtualCheck();
|
||||
Container.DropItem(VirtualCheck);
|
||||
}
|
||||
|
||||
|
|
@ -403,4 +403,4 @@ namespace Server
|
|||
IsDisposed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue