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
2009-05-31 11:00:33 +00:00
parent 08ed5e0496
commit 2952f0b85d
5 changed files with 9 additions and 4 deletions
@@ -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)