Show "?" if a track has no screenshot (instead of the screenshot of
the previous track).
This commit is contained in:
parent
c374beeb10
commit
ae726b0902
@ -117,6 +117,12 @@ void TrackInfoScreen::init()
|
||||
ITexture* screenshot = irr_driver->getTexture(m_track->getScreenshotFile(),
|
||||
"While loading screenshot for track '%s':",
|
||||
m_track->getFilename() );
|
||||
if(!screenshot)
|
||||
{
|
||||
screenshot = irr_driver->getTexture("main_help.png",
|
||||
"While loading screenshot for track '%s':",
|
||||
m_track->getFilename());
|
||||
}
|
||||
if (screenshot != NULL)
|
||||
m_screenshot->setImage(screenshot);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user