summaryrefslogtreecommitdiff
path: root/ContentBuildingReader.cpp
diff options
context:
space:
mode:
authorJapa2010-04-23 07:21:07 +0000
committerJapa2010-04-23 07:21:07 +0000
commitd3d7c87b579fd7327a948690b45182b234af5757 (patch)
tree3502f3143974de82bc35f73ff8aa4439cdbfe707 /ContentBuildingReader.cpp
parent887f9aa0ea41bd33aad6e042c524f4b3d9bb45a3 (diff)
downloadstonesense-d3d7c87b579fd7327a948690b45182b234af5757.tar.gz
stonesense-d3d7c87b579fd7327a948690b45182b234af5757.tar.bz2
stonesense-d3d7c87b579fd7327a948690b45182b234af5757.tar.xz
changed some constructions to make them more uniform
updated levers fixed the keyboard input. updated to the latest DFhack, added temperature viewing.
Diffstat (limited to 'ContentBuildingReader.cpp')
-rw-r--r--ContentBuildingReader.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/ContentBuildingReader.cpp b/ContentBuildingReader.cpp
index 0d3fee4..a7ead38 100644
--- a/ContentBuildingReader.cpp
+++ b/ContentBuildingReader.cpp
@@ -347,24 +347,7 @@ bool addSingleBuildingConfig( TiXmlElement* elemRoot, vector<BuildingConfigurat
int gameID = TranslateBuildingName(strGameID, contentLoader.classIdStrings );
if (gameID == INVALID_INDEX) {
- //warning was already given
- int custID = TranslateCustomBuildingName(strGameID);
- if (custID == INVALID_INDEX)
- {
- return false;
- }
- BuildingConfiguration building(strName, custID );
- RootBlock* spriteroot = new RootBlock();
- building.sprites = spriteroot;
- if (!parseSpriteNode(spriteroot,elemRoot))
- {
- delete(spriteroot);
- return false;
- }
-
- //add a copy of 'building' to known buildings
- contentLoader.customBuildingConfigs[custID] = building;
- return true;
+ return false;
}
BuildingConfiguration building(strName, gameID );