mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Merge pull request #3234 from spjspj/master
Fix for the audio trigger of 'Player joined the table' not being fired.
This commit is contained in:
commit
fdd55e70e0
1 changed files with 5 additions and 2 deletions
|
@ -437,6 +437,7 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
|
|||
AudioManager.playPlayerJoinedTable();
|
||||
} else {
|
||||
MageTray.instance.displayMessage("A player left your game.");
|
||||
AudioManager.playPlayerLeft();
|
||||
}
|
||||
MageTray.instance.blink();
|
||||
}
|
||||
|
@ -450,11 +451,13 @@ class UpdateSeatsTask extends SwingWorker<Void, TableView> {
|
|||
int playerCount = 0;
|
||||
if (tableView != null) {
|
||||
for (SeatView seatView : tableView.getSeats()) {
|
||||
if (seatView.getPlayerId() != null && seatView.getPlayerType().equals("Human")) {
|
||||
if (seatView.getPlayerId() != null) {
|
||||
if (seatView.getPlayerType().toString().equals("Human")) {
|
||||
playerCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return playerCount;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue