Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 18, 2011, 6:52:21 PM (12 years ago)
Author:
jo
Message:

Pawn&SpaceShip Colouring via XML works. Quick&Dirty implementation though. A clean version is going to follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamecontent/src/orxonox/gametypes/Mission.cc

    r8941 r8942  
    9090
    9191    void Mission::setTeams()
    92     {
     92    {//Set pawn-colours
    9393        for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it != ObjectList<Pawn>::end(); ++it)
    94             this->setObjectColour(*it);
     94        {
     95            Pawn* pawn = static_cast<Pawn*>(*it);
     96            if(!pawn) continue;
     97                this->setDefaultObjectColour(pawn);
     98        }
    9599    }
    96100
Note: See TracChangeset for help on using the changeset viewer.