Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2013, 1:42:53 PM (11 years ago)
Author:
maxima
Message:

If the HumanController dies but had slaves,
then the Controller changes to one of his slaves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/formationupdate/src/orxonox/worldentities/pawns/Pawn.cc

    r9614 r9615  
    325325                        }
    326326                }
     327                orxout(user_warning) << "The HumanController has no slaves!" << endl;
    327328                return false;
    328329    }
     
    359360                 * Doesn't work yet
    360361                 *
    361                  * if(this->hasSlaves())
     362                 */ if(this->hasSlaves())
    362363                {
    363364                                // start to control a slave
    364365                                this->getPlayer()->startControl(this->getSlave()->getControllableEntity());
    365                 }*/
    366                 this->getPlayer()->stopControl();
     366                }
     367                 else{
     368                         this->getPlayer()->stopControl();
     369                 }
    367370            }
    368371            if (GameMode::isMaster())
Note: See TracChangeset for help on using the changeset viewer.