Skip to content

Commit

Permalink
send the correct player count
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Oct 5, 2024
1 parent 9758c7f commit 88ddd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/service/Ld56MasterServer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ class Ld56MasterServer {
if hosts.nonEmpty then
val randomHost = hosts(Random.nextInt(hosts.length))

sendMessage(JoinResponseMessage(randomHost.host, randomHost.port, 0), sourceAddr)
sendMessage(JoinResponseMessage(randomHost.host, randomHost.port, randomHost.playerCount), sourceAddr)
}
}

0 comments on commit 88ddd2f

Please sign in to comment.