Skip to content

Commit

Permalink
fix that send "player x joined as side y" was not sent to other players.
Browse files Browse the repository at this point in the history
  • Loading branch information
riverwanderer committed Sep 27, 2023
1 parent c2737b8 commit 65c0933
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ public void finish() {
if (GameModule.getGameModule().isMultiplayerConnected()) {
final Command c = new Chatter.DisplayText(GameModule.getGameModule().getChatter(), Resources.getString(GlobalOptions.getInstance().chatterHTMLSupport() ? "PlayerRoster.joined_side_2" : "PlayerRoster.joined_side", GameModule.getGameModule().getPrefs().getValue(GameModule.REAL_NAME), translateSide(newSide)));
c.execute();
GameModule.getGameModule().getServer().sendToOthers(c);
}

final Add a = new Add(this, GameModule.getActiveUserId(), GlobalOptions.getInstance().getPlayerId(), newSide);
Expand Down

0 comments on commit 65c0933

Please sign in to comment.