diff --git a/Texture.cpp b/Texture.cpp index fbe8c033..bf505024 100644 --- a/Texture.cpp +++ b/Texture.cpp @@ -916,7 +916,7 @@ texture_manager::find_on_disk( std::string const &Texturename ) const { return( FileExists( Texturename ) ? Texturename : - FileExists( szTexturePath + Texturename ) ? szTexturePath + Texturename : + FileExists( global_texture_path + Texturename ) ? global_texture_path + Texturename : "" ); } diff --git a/usefull.h b/usefull.h index c252d992..15d943ca 100644 --- a/usefull.h +++ b/usefull.h @@ -16,11 +16,11 @@ http://mozilla.org/MPL/2.0/. #define DegToRad(a) ((M_PI / 180.0) * (a)) //(a) w nawiasie, bo może być dodawaniem #define RadToDeg(r) ((180.0 / M_PI) * (r)) -#define asModelsPath std::string("models/") -#define asSceneryPath std::string("scenery/") -#define szSceneryPath "scenery/" -#define szTexturePath "textures/" -#define szSoundPath "sounds/" +#define asModelsPath std::string("models\\") +#define asSceneryPath std::string("scenery\\") +#define szSceneryPath "scenery\\" +#define szTexturePath "textures\\" +#define szSoundPath "sounds\\" #define global_texture_path "textures/" #define MAKE_ID4(a,b,c,d) (((std::uint32_t)(d)<<24)|((std::uint32_t)(c)<<16)|((std::uint32_t)(b)<<8)|(std::uint32_t)(a))