Explorar o código

Removed treacherous randomized constructor.

DjWarmonger %!s(int64=11) %!d(string=hai) anos
pai
achega
ca7fe822eb
Modificáronse 2 ficheiros con 0 adicións e 7 borrados
  1. 0 6
      lib/rmg/CMapGenOptions.cpp
  2. 0 1
      lib/rmg/CMapGenOptions.h

+ 0 - 6
lib/rmg/CMapGenOptions.cpp

@@ -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)

+ 0 - 1
lib/rmg/CMapGenOptions.h

@@ -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.