Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/WolfireGames/overgrowth.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Game/terraininfo.cpp')
-rw-r--r--Source/Game/terraininfo.cpp32
1 files changed, 14 insertions, 18 deletions
diff --git a/Source/Game/terraininfo.cpp b/Source/Game/terraininfo.cpp
index 231822bd..c8dec2fb 100644
--- a/Source/Game/terraininfo.cpp
+++ b/Source/Game/terraininfo.cpp
@@ -34,8 +34,7 @@
#include <tinyxml.h>
-void TerrainInfo::Print()
-{
+void TerrainInfo::Print() {
LOGI << "Minimal: " << minimal << std::endl;
LOGI << "Heightmap: " << heightmap << std::endl;
LOGI << "Colormap: " << colormap << std::endl;
@@ -43,15 +42,13 @@ void TerrainInfo::Print()
LOGI << "Model Override: " << model_override << std::endl;
LOGI << "Shader Extra: " << shader_extra << std::endl;
LOGI << "Detail maps:" << std::endl;
- for (auto & i : detail_map_info)
- {
+ for (auto &i : detail_map_info) {
i.Print();
}
LOGI << "Detail objects: " << std::endl;
- for (auto & i : detail_object_info)
- {
+ for (auto &i : detail_object_info) {
LOGI << "Obj path: " << i.obj_path << std::endl;
- }
+ }
}
void TerrainInfo::SetDefaults() {
@@ -65,21 +62,20 @@ void TerrainInfo::SetDefaults() {
shader_extra.clear();
}
-void TerrainInfo::ReturnPaths( PathSet &path_set )
-{
- path_set.insert("heightmap "+heightmap);
- path_set.insert("texture "+colormap);
- if(!weightmap.empty()){
- path_set.insert("texture "+weightmap);
- path_set.insert("image_sample "+weightmap);
+void TerrainInfo::ReturnPaths(PathSet &path_set) {
+ path_set.insert("heightmap " + heightmap);
+ path_set.insert("texture " + colormap);
+ if (!weightmap.empty()) {
+ path_set.insert("texture " + weightmap);
+ path_set.insert("image_sample " + weightmap);
}
- if(!model_override.empty()){
- path_set.insert("model "+model_override);
+ if (!model_override.empty()) {
+ path_set.insert("model " + model_override);
}
- for(auto & i : detail_map_info){
+ for (auto &i : detail_map_info) {
i.ReturnPaths(path_set);
}
- for(auto & i : detail_object_info){
+ for (auto &i : detail_object_info) {
i.ReturnPaths(path_set);
}
}