Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8311 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jun 11, 2006, 12:41:26 PM (19 years ago)
Author:
bensch
Message:

trunk: improoved debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/texture_sequence.cc

    r8310 r8311  
    122122      retVal = false;
    123123  }
    124 
    125124  return retVal;
    126125}
     
    174173bool TextureSequence::addFrame(const std::string& imageName)
    175174{
    176   printf("adding %s\n", imageName.c_str());
    177175  SDL_Surface* addSurface = IMG_Load(imageName.c_str());
     176  if (addSurface == NULL)
     177  {
     178    PRINTF(2)("Unable to load Image %s\n", imageName.c_str());
     179    return false;
     180  }
    178181  bool success = this->addFrame(addSurface);
    179182  delete addSurface;
Note: See TracChangeset for help on using the changeset viewer.