QTfrontend/mapContainer.cpp
changeset 5993 412ada3d2041
parent 5795 3f36293e6945
child 6087 6e422ea250a1
equal deleted inserted replaced
5992:a311b8461ec9 5993:412ada3d2041
   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();