Changeset 9833 in orxonox.OLD for branches/new_class_id/src/world_entities/terrain.cc
- Timestamp:
- Sep 26, 2006, 4:59:49 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/terrain.cc
r9727 r9833 18 18 #include "terrain.h" 19 19 20 #include "util/loading/new_resource_manager.h" 20 21 #include "util/loading/load_param.h" 21 22 #include "util/loading/factory.h" 22 23 #include "spatial_separation.h" 23 24 24 #include "util/loading/resource_manager.h"25 25 #include "model.h" 26 26 #include "network_game_manager.h" … … 93 93 if( this->ssp) 94 94 delete ssp; 95 if (this->vegetation)96 {97 ResourceManager::getInstance()->unload(this->vegetation);98 }99 95 100 96 if(this->heightMap) … … 148 144 this->heightMap = NULL; 149 145 150 std::string hmName = Resource Manager::getFullName(heightMapFile);151 std::string hmColorName = Resource Manager::getFullName(colorMap);146 std::string hmName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(heightMapFile); 147 std::string hmColorName = Resources::NewResourceManager::getInstance()->prependAbsoluteMainPath(colorMap); 152 148 153 149 … … 181 177 PRINTF(4)("loadVegetation: %s\n", vegetationFile.c_str()); 182 178 if (this->vegetation) 183 ResourceManager::getInstance()->unload(this->vegetation, RP_LEVEL);179 this->vegetation = 0; 184 180 if (!vegetationFile.empty()) 185 181 { 186 182 PRINTF(4)("fetching %s\n", vegetationFile.c_str()); 187 this->vegetation = dynamic_cast<Model*>(ResourceManager::getInstance()->load(vegetationFile, OBJ, RP_CAMPAIGN)); 183 this->loadModel(vegetationFile, 1.0, 2); 184 this->vegetation = this->getModel(2); 188 185 } 189 186 else
Note: See TracChangeset
for help on using the changeset viewer.