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:
Ali El Gariani 2008-06-24 21:36:49 +00:00
parent 61a78b4f3f
commit c307ee8dbd
2 changed files with 3 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 B

View file

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