Fixed accidentally building the board from player2 perspective.
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Gameboard.ShogiUI.Sockets.Managers.ClientActionHandlers
|
||||
{
|
||||
var request = JsonConvert.DeserializeObject<JoinGameRequest>(json);
|
||||
|
||||
var joinGameResponse = await gameboardRepository.PutJoinPublicSession(new PutJoinPublicSession
|
||||
var joinSucceeded = await gameboardRepository.PutJoinPublicSession(new PutJoinPublicSession
|
||||
{
|
||||
PlayerName = userName,
|
||||
SessionName = request.GameName
|
||||
@@ -34,7 +34,7 @@ namespace Gameboard.ShogiUI.Sockets.Managers.ClientActionHandlers
|
||||
PlayerName = userName,
|
||||
GameName = request.GameName
|
||||
};
|
||||
if (joinGameResponse.JoinSucceeded)
|
||||
if (joinSucceeded)
|
||||
{
|
||||
await communicationManager.BroadcastToAll(response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user