- Timestamp:
- Nov 4, 2015, 10:25:42 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/orxonox/controllers/FormationController.cc
r10631 r10765 773 773 { 774 774 775 Pawn *humanPawn = NULL;776 NewHumanController *currentHumanController = NULL;775 Pawn *humanPawn = nullptr; 776 NewHumanController *currentHumanController = nullptr; 777 777 std::vector<FormationController*> allMasters; 778 778 … … 800 800 } 801 801 802 if((humanPawn != NULL) && (allMasters.size() != 0))802 if((humanPawn != nullptr) && (allMasters.size() != 0)) 803 803 { 804 804 float posHuman = humanPawn->getPosition().length(); … … 826 826 void FormationController::followInit(Pawn* pawn, const bool always, const int secondsToFollow) 827 827 { 828 if (pawn == NULL|| this->state_ != MASTER)828 if (pawn == nullptr || this->state_ != MASTER) 829 829 return; 830 830 this->specificMasterAction_ = FOLLOW; … … 844 844 { 845 845 846 Pawn *humanPawn = NULL;847 NewHumanController *currentHumanController = NULL;846 Pawn *humanPawn = nullptr; 847 NewHumanController *currentHumanController = nullptr; 848 848 849 849 for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it; ++it) … … 861 861 } 862 862 863 if((humanPawn != NULL))863 if((humanPawn != nullptr)) 864 864 this->followInit(humanPawn); 865 865 }
Note: See TracChangeset
for help on using the changeset viewer.