Fixes for Last Moved (#194)
This commit is contained in:
parent
3a081d5322
commit
b476bcfd24
28 changed files with 155 additions and 398 deletions
|
|
@ -136,7 +136,7 @@ namespace Server.Engines.Mahjong
|
|||
int hand = tile.Dimensions.GetHandArea();
|
||||
|
||||
if (hand < 0 || players.IsPublic(hand) || players.GetPlayer(hand) == to ||
|
||||
(game.SpectatorVision && players.IsSpectator(to)))
|
||||
game.SpectatorVision && players.IsSpectator(to))
|
||||
Stream.Write((byte)tile.Value);
|
||||
else
|
||||
Stream.Write((byte)0);
|
||||
|
|
@ -176,7 +176,7 @@ namespace Server.Engines.Mahjong
|
|||
int hand = tile.Dimensions.GetHandArea();
|
||||
|
||||
if (hand < 0 || players.IsPublic(hand) || players.GetPlayer(hand) == to ||
|
||||
(game.SpectatorVision && players.IsSpectator(to)))
|
||||
game.SpectatorVision && players.IsSpectator(to))
|
||||
Stream.Write((byte)tile.Value);
|
||||
else
|
||||
Stream.Write((byte)0);
|
||||
|
|
@ -206,4 +206,4 @@ namespace Server.Engines.Mahjong
|
|||
Stream.Write((byte)0x1A);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue