Show "?" if a track has no screenshot (instead of the screenshot of

the previous track).
This commit is contained in:
hiker 2014-09-10 09:39:20 +10:00
parent c374beeb10
commit ae726b0902

View File

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