Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 20, 2012, 4:46:52 PM (12 years ago)
Author:
jo
Message:

On the way of repairing a bug that was caused by manual refactoring of gametype's playerScored function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.cc

    r9339 r9340  
    310310        if (spaceship)
    311311        {
     312            WeakPtr<SpaceShip>* ptr = new WeakPtr<SpaceShip>(spaceship);
     313            if(ptr == NULL)
     314                return;
    312315            spaceship->addSpeedFactor(5);
    313             WeakPtr<SpaceShip>* ptr = new WeakPtr<SpaceShip>(spaceship);
    314316            ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this));
    315317            executor->setDefaultValue(0, ptr);
     
    490492        }
    491493        //killers: every 4th player is a killer
    492         if (getPlayerCount()/4 > (int)numberOf[killer])
     494        if ( static_cast<unsigned int>(getPlayerCount()/4) > numberOf[killer])
    493495        {
    494496            notEnoughKillers=true;
Note: See TracChangeset for help on using the changeset viewer.