December 2014 files
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
#include "SharedConstants.h"
|
||||
#include "RandomStrollGoal.h"
|
||||
|
||||
RandomStrollGoal::RandomStrollGoal(PathfinderMob *mob, float speed)
|
||||
RandomStrollGoal::RandomStrollGoal(PathfinderMob *mob, double speedModifier)
|
||||
{
|
||||
this->mob = mob;
|
||||
this->speed = speed;
|
||||
this->speedModifier = speedModifier;
|
||||
setRequiredControlFlags(Control::MoveControlFlag | Control::LookControlFlag);
|
||||
}
|
||||
|
||||
@@ -56,5 +56,5 @@ bool RandomStrollGoal::canContinueToUse()
|
||||
|
||||
void RandomStrollGoal::start()
|
||||
{
|
||||
mob->getNavigation()->moveTo(wantedX, wantedY, wantedZ, speed);
|
||||
mob->getNavigation()->moveTo(wantedX, wantedY, wantedZ, speedModifier);
|
||||
}
|
||||
Reference in New Issue
Block a user