mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Merge pull request #3912 from IvanSavenko/fix_template_selection
[1.5.0] Slightly better randomization of map template
This commit is contained in:
commit
eab4cf946d
@ -543,7 +543,7 @@ void CGameHandler::init(StartInfo *si, Load::ProgressAccumulator & progressTrack
|
||||
{
|
||||
if (si->seedToBeUsed == 0)
|
||||
{
|
||||
si->seedToBeUsed = static_cast<ui32>(std::time(nullptr));
|
||||
si->seedToBeUsed = CRandomGenerator::getDefault().nextInt();
|
||||
}
|
||||
CMapService mapService;
|
||||
gs = new CGameState();
|
||||
|
Loading…
x
Reference in New Issue
Block a user