Commit 09c7228b authored by Jonathan Michalon's avatar Jonathan Michalon
Browse files

Server: drop Game.n_players usage too… (oops)

parent 2149757e
......@@ -44,7 +44,7 @@ public class Server: ThreadedSocketService
{
lock (tables) {
foreach (var game in tables) {
if (game.state != GameState.STOPPED && game.n_players < 1) {
if (game.state != GameState.STOPPED && game.players.length() < 1) {
tables.remove (game);
debug ("Cleaned up table %p", game);
}
......@@ -61,7 +61,7 @@ public class Server: ThreadedSocketService
lock (tables) {
foreach (var game in tables) {
if (game.state == GameState.STOPPED &&
(candidate == null || candidate.n_players < game.n_players)) {
(candidate == null || candidate.players.length() < game.players.length())) {
candidate = game;
}
n_open_tables++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment