summaryrefslogtreecommitdiff
path: root/ContentBuildingReader.cpp
diff options
context:
space:
mode:
authorKris Parker2009-12-04 00:26:59 +0000
committerKris Parker2009-12-04 00:26:59 +0000
commite45cd155cc1fe2cf3d200291732a4e57e8a0cc09 (patch)
tree3a4486e05131523e0ae81444e3d8b6644bb88b41 /ContentBuildingReader.cpp
parenta35872a33590ea1bb5b6071d9b5570d8c7f4d2f9 (diff)
downloadstonesense-e45cd155cc1fe2cf3d200291732a4e57e8a0cc09.tar.gz
stonesense-e45cd155cc1fe2cf3d200291732a4e57e8a0cc09.tar.bz2
stonesense-e45cd155cc1fe2cf3d200291732a4e57e8a0cc09.tar.xz
Removed duplicate blockcondition
Diffstat (limited to 'ContentBuildingReader.cpp')
-rw-r--r--ContentBuildingReader.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/ContentBuildingReader.cpp b/ContentBuildingReader.cpp
index 43d7c51..318c621 100644
--- a/ContentBuildingReader.cpp
+++ b/ContentBuildingReader.cpp
@@ -39,7 +39,7 @@ int parseConditionNode(ConditionalNode* node, TiXmlElement* elemCondition, bool
else if( strcmp(strType, "MaterialType") == 0){
cond = new MaterialTypeCondition( elemCondition->Attribute("value") );
}
- else if( strcmp(strType, "MaterialIndex") == 0){
+ else if( strcmp(strType, "MaterialIndex") == 0){
cond = new MaterialIndexCondition( elemCondition->Attribute("value") );
}
else if( strcmp(strType, "always") == 0){
@@ -68,17 +68,13 @@ int parseConditionNode(ConditionalNode* node, TiXmlElement* elemCondition, bool
else if( strcmp(strType, "NeighbourIdentical") == 0){
cond = new NeighbourIdenticalCondition( elemCondition->Attribute("dir") );
- }
-
- else if( strcmp(strType, "NeighbourIdentical") == 0){
- cond = new NeighbourIdenticalCondition( elemCondition->Attribute("dir") );
- }
+ }
else if( strcmp(strType, "AnimationFrame") == 0){
cond = new AnimationFrameCondition( elemCondition->Attribute("value") );
}
- else if( strcmp(strType, "FluidBelow") == 0){
+ else if( strcmp(strType, "FluidBelow") == 0){
cond = new FluidBelowCondition( elemCondition->Attribute("value") );
}