Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6852


Ignore:
Timestamp:
May 3, 2010, 10:33:02 PM (15 years ago)
Author:
kolibri7
Message:

modified it, but the game crashes, something is wrong with while(…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/lod/src/orxonox/graphics/Model.cc

    r6843 r6852  
    105105                    float scaleFactor = getBiggestScale(this->getScale3D());
    106106                    BaseObject* creatorPtr = this->getCreator();
    107                     while(creatorPtr!=0)
     107                                        //TODO Doesn't work...
     108                    while(creatorPtr!=0&&typeid(creatorPtr)!=typeid(new WorldEntity*))
    108109                    {
    109                         // TODO Cannot cast to WorldEntity
    110                         scaleFactor *= getBiggestScale(((WorldEntity) creatorPtr)->getScale3D());
     110                        scaleFactor *= getBiggestScale(((WorldEntity*) creatorPtr)->getScale3D());
    111111                        creatorPtr = this->getCreator();
    112112                    }
Note: See TracChangeset for help on using the changeset viewer.