QTfrontend/mapContainer.cpp
changeset 4565 8a1476a5629e
parent 4564 6e45916a246e
child 4566 87ee1be17d27
equal deleted inserted replaced
4564:6e45916a246e 4565:8a1476a5629e
   481     }
   481     }
   482 }
   482 }
   483 
   483 
   484 void HWMapContainer::setRandomStatic()
   484 void HWMapContainer::setRandomStatic()
   485 {
   485 {
   486     chooseMap->setCurrentIndex(MAPGEN_MAP + 1 + numMissions + rand() % (chooseMap->count() - MAPGEN_MAP - 1 - numMissions));
   486     chooseMap->setCurrentIndex(MAPGEN_MAP + 2 + numMissions + rand() % (chooseMap->count() - MAPGEN_MAP - 2 - numMissions));
   487     setRandomSeed();
   487     setRandomSeed();
   488 }
   488 }
   489 
   489 
   490 void HWMapContainer::setRandomMission()
   490 void HWMapContainer::setRandomMission()
   491 {
   491 {