Added a visual indication of missing images, but only in debug-mode:
Show a white hex with red question mark (ugly placeholder but that's the point) Tell me if it's more annoying than useful.
This commit is contained in:
parent
61a78b4f3f
commit
c307ee8dbd
2 changed files with 3 additions and 0 deletions
BIN
images/misc/missing-image.png
Normal file
BIN
images/misc/missing-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 650 B |
|
@ -310,6 +310,9 @@ surface locator::load_image_file() const
|
|||
|
||||
if (res.null() && !val_.filename_.empty()) {
|
||||
ERR_DP << "could not open image '" << val_.filename_ << "'\n";
|
||||
static const std::string missing = "misc/missing-image.png";
|
||||
if (game_config::debug && val_.filename_ != missing)
|
||||
return get_image(missing, UNSCALED);
|
||||
}
|
||||
|
||||
return res;
|
||||
|
|
Loading…
Add table
Reference in a new issue