16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

path fixes

This commit is contained in:
milek7
2017-08-19 22:39:12 +02:00
parent 9cb61b0285
commit a4ef017eab
2 changed files with 6 additions and 6 deletions

View File

@@ -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 :
"" );
}

View File

@@ -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))