Skip to content

Commit 4b93e79

Browse files
committed
Debug: Fixed high number expiration time for travel destinations when it has run out.
1 parent df36871 commit 4b93e79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playerbot/TravelMgr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ namespace ai
7878
{"should ah sell", false},
7979
{"can ah sell", false},
8080
{"can get mail", false },
81-
{"has strategy::free", false},
8281
{"has strategy::rpg quest", false},
8382
{"can fight equal", false},
8483
{"can fight elite", false},
@@ -336,8 +335,8 @@ namespace ai
336335
bool IsPreparing();
337336

338337
uint32 GetRetryCount(bool isMove) const { return isMove ? moveRetryCount : extendRetryCount; }
339-
uint32 GetTimeLeft() const { return statusTime - GetExpiredTime(); }
340-
uint32 GetExpiredTime() const { return WorldTimer::getMSTime() - startTime; }
338+
int32 GetTimeLeft() const { return statusTime - GetExpiredTime(); }
339+
int32 GetExpiredTime() const { return WorldTimer::getMSTime() - startTime; }
341340

342341
void SetRetry(bool isMove, uint32 newCount = 0) { if (isMove) moveRetryCount = newCount; else extendRetryCount = newCount; }
343342
bool IsMaxRetry(bool isMove) { return isMove ? (moveRetryCount > 10) : (extendRetryCount > 5); }
@@ -346,6 +345,7 @@ namespace ai
346345

347346
void AddCondition(std::string condition) { travelConditions.push_back(condition); }
348347
void SetConditions(std::vector<std::string> conditions) { travelConditions = conditions; }
348+
std::vector<std::string> GetConditions() { return travelConditions; }
349349

350350
void SetStatus(TravelStatus status);
351351
void SetExpireIn(uint32 expireMs) { statusTime = GetExpiredTime() + expireMs; }

0 commit comments

Comments
 (0)