mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Rename menu background to menubg.png, move unknown_block.png and unknown_object.png to client, make generating a placeholder image for the filename "" not cause an error
This commit is contained in:
parent
705f142b8d
commit
026979e39d
5 changed files with 7 additions and 5 deletions
10
src/tile.cpp
10
src/tile.cpp
|
@ -1088,10 +1088,12 @@ bool generate_image(std::string part_of_name, video::IImage *& baseimg,
|
|||
|
||||
if(image == NULL)
|
||||
{
|
||||
errorstream<<"generate_image(): Could not load image \""
|
||||
<<part_of_name<<"\""<<" while building texture"<<std::endl;
|
||||
errorstream<<"generate_image(): Creating a dummy"
|
||||
<<" image for \""<<part_of_name<<"\""<<std::endl;
|
||||
if(part_of_name != ""){
|
||||
errorstream<<"generate_image(): Could not load image \""
|
||||
<<part_of_name<<"\""<<" while building texture"<<std::endl;
|
||||
errorstream<<"generate_image(): Creating a dummy"
|
||||
<<" image for \""<<part_of_name<<"\""<<std::endl;
|
||||
}
|
||||
|
||||
// Just create a dummy image
|
||||
//core::dimension2d<u32> dim(2,2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue