December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -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;
}