Code Cleanup & Fixes Warnings (#74)

This commit is contained in:
Kamron Batman 2020-01-18 14:56:45 -08:00 committed by GitHub
parent e11d1f3ad9
commit 57b14ad690
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
143 changed files with 2960 additions and 3427 deletions

View file

@ -300,8 +300,7 @@ namespace Server.Multis
public void AddFixtures(Mobile from, MultiTileEntry[] list)
{
if (Fixtures == null)
Fixtures = new List<Item>();
Fixtures ??= new List<Item>();
uint keyValue = 0;
@ -530,7 +529,6 @@ namespace Server.Multis
switch (door.Facing)
{
default:
case DoorFacing.WestCW:
linkFacing = DoorFacing.EastCCW;
xOffset = 1;
yOffset = 0;
@ -618,7 +616,6 @@ namespace Server.Multis
switch (type)
{
default:
case FoundationType.DarkWood:
corner = 0x0014;
east = 0x0015;
south = 0x0016;
@ -1284,7 +1281,6 @@ namespace Server.Multis
switch (dir)
{
default:
case 0: // North
{
xStart = x;
yStart = y + height;