December 2014 files
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
#include "MoveThroughVillageGoal.h"
|
||||
#include "Path.h"
|
||||
|
||||
MoveThroughVillageGoal::MoveThroughVillageGoal(PathfinderMob *mob, float speed, bool onlyAtNight)
|
||||
MoveThroughVillageGoal::MoveThroughVillageGoal(PathfinderMob *mob, double speedModifier, bool onlyAtNight)
|
||||
{
|
||||
path = NULL;
|
||||
doorInfo = weak_ptr<DoorInfo>();
|
||||
|
||||
this->mob = mob;
|
||||
this->speed = speed;
|
||||
this->speedModifier = speedModifier;
|
||||
this->onlyAtNight = onlyAtNight;
|
||||
setRequiredControlFlags(Control::MoveControlFlag);
|
||||
}
|
||||
@@ -67,7 +67,7 @@ bool MoveThroughVillageGoal::canContinueToUse()
|
||||
|
||||
void MoveThroughVillageGoal::start()
|
||||
{
|
||||
mob->getNavigation()->moveTo(path, speed);
|
||||
mob->getNavigation()->moveTo(path, speedModifier);
|
||||
path = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user