Sfoglia il codice sorgente

Experiment: fractalize RMG zones before placing important objects. The downside is that it won't be possible to draw road as straight line anymore.

DjWarmonger 10 anni fa
parent
commit
69c58c6c25
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/rmg/CRmgTemplateZone.cpp

+ 1 - 1
lib/rmg/CRmgTemplateZone.cpp

@@ -1432,9 +1432,9 @@ bool CRmgTemplateZone::fill(CMapGenerator* gen)
 
 	addAllPossibleObjects (gen);
 
+	fractalize(gen);
 	placeMines(gen);
 	createRequiredObjects(gen);
-	fractalize(gen); //after required objects are created and linked with their own paths
 	createTreasures(gen);
 
 	logGlobal->infoStream() << boost::format ("Zone %d filled successfully") %id;