Skip to content

Commit

Permalink
Update submodule in preparation for USOTSUKI
Browse files Browse the repository at this point in the history
  • Loading branch information
KinoMyu committed Mar 31, 2018
1 parent 638e413 commit 4efd424
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion HCADecoder
19 changes: 11 additions & 8 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,16 +195,19 @@ void MainWindow::setIdolVol(int value)

void MainWindow::randomize()
{
std::set<int> seenset;
int n;
for(int i = 0; i < unitsize; ++i)
if(idolsel[0]->count() > 1)
{
do
std::set<int> seenset;
int n;
for(int i = 0; i < unitsize; ++i)
{
n = rand() % (idolsel[i]->count() - 1) + 1;
} while(seenset.find(n) != seenset.end());
seenset.insert(n);
idolsel[i]->setCurrentIndex(n);
do
{
n = rand() % (idolsel[i]->count() - 1) + 1;
} while(seenset.find(n) != seenset.end());
seenset.insert(n);
idolsel[i]->setCurrentIndex(n);
}
}
}

Expand Down

0 comments on commit 4efd424

Please sign in to comment.