Merge pull request #3235 from spjspj/master

Fix for the audio trigger of 'Player joined the table' not being fired.
This commit is contained in:
spjspj 2017-04-25 20:16:14 +10:00 committed by GitHub
commit 9563a610df

View file

@ -54,6 +54,7 @@ import mage.client.util.GUISizeHelper;
import mage.client.util.audio.AudioManager;
import mage.client.util.gui.TableUtil;
import mage.client.util.gui.countryBox.CountryCellRenderer;
import mage.players.PlayerType;
import mage.remote.Session;
import mage.view.SeatView;
import mage.view.TableView;
@ -451,10 +452,8 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
int playerCount = 0;
if (tableView != null) {
for (SeatView seatView : tableView.getSeats()) {
if (seatView.getPlayerId() != null) {
if (seatView.getPlayerType().toString().equals("Human")) {
playerCount++;
}
if (seatView.getPlayerId() != null && seatView.getPlayerType() == PlayerType.HUMAN) {
playerCount++;
}
}
}