equal
deleted
inserted
replaced
507 |
507 |
508 void HWMapContainer::setRandomStatic() |
508 void HWMapContainer::setRandomStatic() |
509 { |
509 { |
510 int i = MAPGEN_MAP + 3 + numMissions + rand() % (chooseMap->count() - MAPGEN_MAP - 3 - numMissions); |
510 int i = MAPGEN_MAP + 3 + numMissions + rand() % (chooseMap->count() - MAPGEN_MAP - 3 - numMissions); |
511 chooseMap->setCurrentIndex(i); |
511 chooseMap->setCurrentIndex(i); |
512 updatePreview(); |
512 mapChanged(i); |
513 } |
513 } |
514 |
514 |
515 void HWMapContainer::setRandomMission() |
515 void HWMapContainer::setRandomMission() |
516 { |
516 { |
517 int i = MAPGEN_MAP + 2 + rand() % numMissions; |
517 int i = MAPGEN_MAP + 2 + rand() % numMissions; |
518 chooseMap->setCurrentIndex(i); |
518 chooseMap->setCurrentIndex(i); |
519 updatePreview(); |
519 mapChanged(i); |
520 } |
520 } |
521 |
521 |
522 void HWMapContainer::setRandomSeed() |
522 void HWMapContainer::setRandomSeed() |
523 { |
523 { |
524 m_seed = QUuid::createUuid().toString(); |
524 m_seed = QUuid::createUuid().toString(); |