Created
December 18, 2013 14:59
-
-
Save m0r13/8023712 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Eclipse Workspace Patch 1.0 | |
#P mapcrafter | |
diff --git src/config/mapcrafter_config.cpp src/config/mapcrafter_config.cpp | |
index 2dadf19..2855cd3 100644 | |
--- src/config/mapcrafter_config.cpp | |
+++ src/config/mapcrafter_config.cpp | |
@@ -532,9 +532,11 @@ | |
bool MapcrafterConfigHelper::isCompleteRenderSkip(const std::string& map) const { | |
const std::set<int>& rotations = config.getMap(map).getRotations(); | |
- for (auto it = rotations.begin(); it != rotations.end(); ++it) | |
+ for (auto it = rotations.begin(); it != rotations.end(); ++it) { | |
+ std::cout << "behavior " << map << " rotation " << *it << ": " << getRenderBehavior(map, *it) << std::endl; | |
if (getRenderBehavior(map, *it) != RENDER_SKIP) | |
return false; | |
+ } | |
return true; | |
} | |
diff --git src/render/manager.cpp src/render/manager.cpp | |
index abcd1d1..c51a87d 100644 | |
--- src/render/manager.cpp | |
+++ src/render/manager.cpp | |
@@ -478,8 +478,12 @@ | |
// ... is not set to skip | |
bool used = false; | |
for (auto map_it = config_maps.begin(); map_it != config_maps.end(); ++map_it) { | |
+ std::cout << map_it->getWorld() << " == " << world_name << " ?" << std::endl; | |
+ | |
+ bool complete_skip = confighelper.isCompleteRenderSkip(map_it->getShortName()); | |
+ std::cout << "complete render skip: " << complete_skip << std::endl; | |
if (map_it->getWorld() == world_name && | |
- !confighelper.isCompleteRenderSkip(map_it->getShortName())) { | |
+ !complete_skip) { | |
used = true; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment