Revert "Updates Packets & Randomizer (#43)" (#61)

This reverts commit 179cb50557.
This commit is contained in:
Kamron Batman 2019-11-11 08:46:11 -08:00 • committed by GitHub
parent 179cb50557
commit c2ecc76457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
588 changed files with 16260 additions and 10926 deletions

View file

@ -6,7 +6,7 @@ namespace Server.Engines.Mahjong
public sealed class MahjongPacketHandlers
{
private static readonly OnMahjongPacketReceive[] m_SubCommandDelegates = new OnMahjongPacketReceive[0x100];
private static OnMahjongPacketReceive[] m_SubCommandDelegates = new OnMahjongPacketReceive[0x100];
public static void RegisterSubCommand(int subCmd, OnMahjongPacketReceive onReceive)
{
@ -80,7 +80,12 @@ namespace Server.Engines.Mahjong
public static void ExitGame(MahjongGame game, NetState state, PacketReader pvSrc)
{
game?.Players.LeaveGame(state.Mobile);
if (game == null)
return;
Mobile from = state.Mobile;
game.Players.LeaveGame(from);
}
public static void GivePoints(MahjongGame game, NetState state, PacketReader pvSrc)
@ -225,4 +230,4 @@ namespace Server.Engines.Mahjong
game.DealerIndicator.Move(new Point2D(x, y), direction, wind);
}
}
}
}