forked from Mirrorlandia_minetest/minetest
Tile.cpp: Fix MSVC build broken by 072bbba
This commit is contained in:
parent
329d654e37
commit
5a59ad2307
@ -2266,7 +2266,7 @@ video::ITexture* TextureSource::getNormalTexture(const std::string &name)
|
|||||||
return getTexture("override_normal.png");
|
return getTexture("override_normal.png");
|
||||||
std::string fname_base = name;
|
std::string fname_base = name;
|
||||||
static const char *normal_ext = "_normal.png";
|
static const char *normal_ext = "_normal.png";
|
||||||
static const uint32_t normal_ext_size = strlen(normal_ext);
|
static const u32 normal_ext_size = strlen(normal_ext);
|
||||||
size_t pos = fname_base.find(".");
|
size_t pos = fname_base.find(".");
|
||||||
std::string fname_normal = fname_base.substr(0, pos) + normal_ext;
|
std::string fname_normal = fname_base.substr(0, pos) + normal_ext;
|
||||||
if (isKnownSourceImage(fname_normal)) {
|
if (isKnownSourceImage(fname_normal)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user