Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11321 for code


Ignore:
Timestamp:
Dec 5, 2016, 4:08:31 PM (8 years ago)
Author:
ooguz
Message:

Distance Trigger works!

Location:
code/branches/QuestGuide_HS16/src/modules/waypoints
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.cc

    r11318 r11321  
    7272          if (activeWaypoint == nullptr){
    7373            orxout() << "Null Pointer" << endl;
    74             activeWaypoint = getFirst();
     74            activateNext();
    7575
    7676          }
     
    8989//    }
    9090
    91     Waypoint* WaypointGroup::getFirst(){
    92         std::set<Waypoint*>::iterator it = waypoints_.begin();
    93         return *it;
    94     }
     91 //   Waypoint* WaypointGroup::getFirst(){
     92 //       std::set<Waypoint*>::iterator it = waypoints_.begin();
     93 //       return *it;
     94 //   }
    9595
    9696
  • code/branches/QuestGuide_HS16/src/modules/waypoints/WaypointGroup.h

    r11318 r11321  
    5151        void activateNext();
    5252
    53         Waypoint* getFirst();
     53        //Waypoint* getFirst();
    5454
    5555
     
    6464        std::set<Waypoint*> waypoints_;
    6565        Waypoint* activeWaypoint;
    66         unsigned int current = 1;
     66        unsigned int current = 0;
    6767        //std::set<Waypoint*>::iterator it;
    6868
Note: See TracChangeset for help on using the changeset viewer.