1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Removed treacherous randomized constructor.

This commit is contained in:
DjWarmonger
2014-07-15 15:41:53 +02:00
parent be8c9c8378
commit ca7fe822eb
2 changed files with 0 additions and 7 deletions

View File

@@ -175,12 +175,6 @@ const std::map<std::string, CRmgTemplate *> & CMapGenOptions::getAvailableTempla
return VLC->tplh->getTemplates();
}
void CMapGenOptions::finalize()
{
CRandomGenerator rand;
finalize(rand);
}
void CMapGenOptions::finalize(CRandomGenerator & rand)
{
if(!mapTemplate)

View File

@@ -145,7 +145,6 @@ public:
/// Finalizes the options. All random sizes for various properties will be overwritten by numbers from
/// a random number generator by keeping the options in a valid state. Check options should return true, otherwise
/// this function fails.
void finalize();
void finalize(CRandomGenerator & rand);
/// Returns false if there is no template available which fits to the currently selected options.