refactor(Core/Movement): Drop unused lastMoveTo* fields + std::future scratch

This commit is contained in:
bash 2026-05-30 23:17:27 +02:00
parent 990e2f2016
commit 3bbe51c232
2 changed files with 0 additions and 20 deletions

View File

@ -14,10 +14,6 @@ LastMovement::LastMovement(LastMovement& other)
taxiMaster(other.taxiMaster),
lastFollow(other.lastFollow),
lastAreaTrigger(other.lastAreaTrigger),
lastMoveToX(other.lastMoveToX),
lastMoveToY(other.lastMoveToY),
lastMoveToZ(other.lastMoveToZ),
lastMoveToOri(other.lastMoveToOri),
lastFlee(other.lastFlee)
{
lastMoveShort = other.lastMoveShort;
@ -31,11 +27,6 @@ void LastMovement::clear()
{
lastMoveShort = WorldPosition();
lastPath.clear();
lastMoveToMapId = 0;
lastMoveToX = 0;
lastMoveToY = 0;
lastMoveToZ = 0;
lastMoveToOri = 0;
lastFollow = nullptr;
lastAreaTrigger = 0;
lastFlee = 0;
@ -55,11 +46,6 @@ void LastMovement::Set(Unit* follow)
void LastMovement::Set(uint32 mapId, float x, float y, float z, float ori, float delayTime, MovementPriority pri)
{
lastMoveToMapId = mapId;
lastMoveToX = x;
lastMoveToY = y;
lastMoveToZ = z;
lastMoveToOri = ori;
lastFollow = nullptr;
lastMoveShort = WorldPosition(mapId, x, y, z, ori);
msTime = getMSTime();

View File

@ -56,11 +56,6 @@ public:
Unit* lastFollow;
uint32 lastAreaTrigger;
time_t lastFlee;
uint32 lastMoveToMapId;
float lastMoveToX;
float lastMoveToY;
float lastMoveToZ;
float lastMoveToOri;
WorldPosition lastMoveShort;
uint32 msTime;
MovementPriority priority;
@ -70,7 +65,6 @@ public:
// used by WaitForTransport to resume a transport segment if the
// bot is still on it next tick (e.g. boat in motion). 0 = none.
uint32 lastTransportEntry{0};
std::future<TravelPath> future;
};
class LastMovementValue : public ManualSetValue<LastMovement&>