mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +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,8 +451,10 @@ 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")) {
|
||||
playerCount++;
|
||||
if (seatView.getPlayerId() != null) {
|
||||
if (seatView.getPlayerType().toString().equals("Human")) {
|
||||
playerCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue