fixing bugs
This commit is contained in:
parent
c657c91851
commit
edbae32ba7
@ -183,7 +183,7 @@
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<PreprocessorDefinitions>TARGET_WIN32;WIN32_LEAN_AND_MEAN;_WIN32_WINNT=0x0501;NDEBUG</PreprocessorDefinitions>
|
||||
<AdditionalIncludeDirectories>$(SalmonEnginePath);$(LibsPath)\boost_1_52_0;$(LibsPath)\openal\OpenAL11_windows_sdk;$(LibsPath)\libogg-1.3.0\include;$(LibsPath)\libvorbis-1.3.2\include;$(LibsPath)\sqplus\sqplus;$(LibsPath)\sqplus\include;$(LibsPath)\DirectXsdk\Include;$(LibsPath)\lpng1510</AdditionalIncludeDirectories>
|
||||
<AdditionalIncludeDirectories>$(SalmonEnginePath);$(LibsPath)\boost_1_52_0;$(LibsPath)\openal\OpenAL11_windows_sdk;$(LibsPath)\libogg-1.3.0\include;$(LibsPath)\libvorbis-1.3.2\include;$(LibsPath)\sqplus\sqplus;$(LibsPath)\sqplus\include;$(LibsPath)\DirectXsdk\Include;$(LibsPath)\lpng1510;$(LibsPath)\jpeg-9;$(LibsPath)\jpeg-9\vc10</AdditionalIncludeDirectories>
|
||||
<DisableSpecificWarnings>4503</DisableSpecificWarnings>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
|
@ -630,7 +630,11 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName)
|
||||
|
||||
cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string texName)
|
||||
{
|
||||
|
||||
if (texName == "")
|
||||
{
|
||||
texName = GetFileName(fileName);
|
||||
}
|
||||
|
||||
std::string fullFileName = ST::PathToResources + fileName;
|
||||
|
||||
std::string realFileName;
|
||||
@ -645,8 +649,6 @@ cardinal TTextureListClass::AddTexture(const std::string& fileName, std::string
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return AddTextureDirectly(realFileName, texName);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user