Fixing some compiler warnings and single-threaded game issues. Note: The server currently crashes when trying to start a game.

This commit is contained in:
lotodore committed 2009-05-31 11:00:33 +00:00
1 parent 08ed5e0496
commit 2952f0b85d
5 files changed
+9 -4

No files matched your search

@@ -262,7 +262,7 @@ void gameLobbyDialogImpl::updateGameItem(QTreeWidgetItem *item, unsigned gameId)
item->setData(0, Qt::DisplayRole, QString::fromUtf8(info.name.c_str()));
QString playerStr;
playerStr.sprintf("%u/%u", info.players.size(), info.data.maxNumberOfPlayers);
playerStr.sprintf("%u/%u", (unsigned)info.players.size(), (unsigned)info.data.maxNumberOfPlayers);
item->setData(1, Qt::DisplayRole, playerStr);
if (info.mode == GAME_MODE_STARTED)