Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10588


Ignore:
Timestamp:
Sep 15, 2015, 4:44:28 PM (9 years ago)
Author:
landauf
Message:

use the new entity as waypoint (each WaypointController will destroy its waypoints when it is destroyed → each controller must have its own waypoints)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseFabien/src/modules/towerdefense/TowerDefense.cc

    r10587 r10588  
    209209                orxonox::WeakPtr<MovableEntity> waypoint = new MovableEntity(this->center_->getContext());
    210210                waypoint->setPosition(waypoints_.at(i)->getPosition());
    211                 controller->addWaypoint(waypoints_.at(i));
     211                controller->addWaypoint(waypoint);
    212212            }
    213213        }
Note: See TracChangeset for help on using the changeset viewer.