equal
deleted
inserted
replaced
57 void HWGame::onClientDisconnect() |
57 void HWGame::onClientDisconnect() |
58 {/* |
58 {/* |
59 switch (gameType) |
59 switch (gameType) |
60 { |
60 { |
61 case gtDemo: |
61 case gtDemo: |
62 // for video recording we need demo anyway |
62 // for video recording we need demo anyway |
63 emit HaveRecord(rtNeither, demo); |
63 emit HaveRecord(rtNeither, demo); |
64 break; |
64 break; |
65 case gtNet: |
65 case gtNet: |
66 emit HaveRecord(rtDemo, demo); |
66 emit HaveRecord(rtDemo, demo); |
67 break; |
67 break; |
341 |
341 |
342 flib_gamesetup gameSetup; |
342 flib_gamesetup gameSetup; |
343 gameSetup.style = NULL; |
343 gameSetup.style = NULL; |
344 gameSetup.gamescheme = flib_scheme_create("Default"); |
344 gameSetup.gamescheme = flib_scheme_create("Default"); |
345 gameSetup.map = flib_map_create_regular( |
345 gameSetup.map = flib_map_create_regular( |
346 QUuid::createUuid().toByteArray().constData() |
346 QUuid::createUuid().toString().toAscii().constData() |
347 , themeModel->rowCount() > 0 ? themeModel->index(rand() % themeModel->rowCount()).data().toString().toUtf8().constData() : "Sheep" |
347 , themeModel->rowCount() > 0 ? themeModel->index(rand() % themeModel->rowCount()).data().toString().toUtf8().constData() : "Sheep" |
348 , 2); |
348 , 2); |
349 gameSetup.teamlist = flib_teamlist_create(); |
349 gameSetup.teamlist = flib_teamlist_create(); |
350 |
350 |
351 // add teams |
351 // add teams |