mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Removed treacherous randomized constructor.
This commit is contained in:
parent
be8c9c8378
commit
ca7fe822eb
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user