@@ -200,6 +200,7 @@ class Font3DDataIterator : public AssetIterator
200
200
WW3DAssetManager::WW3DAssetManager (void ) :
201
201
PrototypeLoaders (PROTOLOADERS_VECTOR_SIZE),
202
202
Prototypes (PROTOTYPES_VECTOR_SIZE),
203
+
203
204
WW3D_Load_On_Demand (false ),
204
205
Activate_Fog_On_Load (false ),
205
206
MetalManager(0 )
@@ -212,7 +213,10 @@ WW3DAssetManager::WW3DAssetManager(void) :
212
213
Prototypes.Set_Growth_Step (PROTOTYPES_GROWTH_RATE);
213
214
214
215
// install the default loaders
216
+ #ifndef USE_WWSHADE
215
217
Register_Prototype_Loader (&_MeshLoader);
218
+ #endif
219
+
216
220
Register_Prototype_Loader (&_HModelLoader);
217
221
Register_Prototype_Loader (&_CollectionLoader);
218
222
Register_Prototype_Loader (&_BoxLoader);
@@ -798,7 +802,8 @@ RenderObjClass * WW3DAssetManager::Create_Render_Obj(const char * name)
798
802
799
803
// If we can't find it, try the parent directory
800
804
if ( Load_3D_Assets ( filename ) == false ) {
801
- StringClass new_filename = StringClass (" ..\\ " ) + filename;
805
+ StringClass new_filename (StringClass (" ..\\ " ),true );
806
+ new_filename+=filename;
802
807
Load_3D_Assets ( new_filename );
803
808
}
804
809
@@ -1024,7 +1029,8 @@ HTreeClass * WW3DAssetManager::Get_HTree(const char * name)
1024
1029
1025
1030
// If we can't find it, try the parent directory
1026
1031
if ( Load_3D_Assets ( filename ) == false ) {
1027
- StringClass new_filename = StringClass (" ..\\ " ) + filename;
1032
+ StringClass new_filename (" ..\\ " ,true );
1033
+ new_filename+=filename;
1028
1034
Load_3D_Assets ( new_filename );
1029
1035
}
1030
1036
0 commit comments