Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6418 in orxonox.OLD


Ignore:
Timestamp:
Jan 6, 2006, 4:16:47 PM (18 years ago)
Author:
bensch
Message:

network: scaling: warn instead of just set to 1.0 if the value of scaling is 0.0f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/world_entity.cc

    r6417 r6418  
    124124      return;
    125125    }
    126 
     126    if (scaling == 0.0)
     127    {
     128      scaling = 1.0;
     129      PRINTF(1)("YOU GAVE ME A CRAPY SCALE resetting to 1\n");
     130    }
    127131    if(strstr(fileName, ".obj"))
    128132    {
    129133      PRINTF(4)("fetching OBJ file: %s\n", fileName);
    130       if (true/*scaling == 1.0*/)
     134      if (scaling == 1.0)
    131135        this->setModel((Model*)ResourceManager::getInstance()->load(fileName, OBJ, RP_CAMPAIGN), modelNumber);
    132136      else
Note: See TracChangeset for help on using the changeset viewer.