mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Removed treacherous randomized constructor.
This commit is contained in:
@@ -175,12 +175,6 @@ const std::map<std::string, CRmgTemplate *> & CMapGenOptions::getAvailableTempla
|
|||||||
return VLC->tplh->getTemplates();
|
return VLC->tplh->getTemplates();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMapGenOptions::finalize()
|
|
||||||
{
|
|
||||||
CRandomGenerator rand;
|
|
||||||
finalize(rand);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CMapGenOptions::finalize(CRandomGenerator & rand)
|
void CMapGenOptions::finalize(CRandomGenerator & rand)
|
||||||
{
|
{
|
||||||
if(!mapTemplate)
|
if(!mapTemplate)
|
||||||
|
|||||||
@@ -145,7 +145,6 @@ public:
|
|||||||
/// Finalizes the options. All random sizes for various properties will be overwritten by numbers from
|
/// 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
|
/// a random number generator by keeping the options in a valid state. Check options should return true, otherwise
|
||||||
/// this function fails.
|
/// this function fails.
|
||||||
void finalize();
|
|
||||||
void finalize(CRandomGenerator & rand);
|
void finalize(CRandomGenerator & rand);
|
||||||
|
|
||||||
/// Returns false if there is no template available which fits to the currently selected options.
|
/// Returns false if there is no template available which fits to the currently selected options.
|
||||||
|
|||||||
Reference in New Issue
Block a user